fun off(event: String, ref: Ref? = null): Unit
Unregister a callback
event
- The event name to unregister the callback for.
This must match what was passed to Channel.on.
ref
- The ref returned by Channel.on, can be ommited
to unregister all callbacks for a particular event.