Example add an function to enable, disable it. Otherwise users may use it to send arbitrary events to the server