register MethodStatic

Register this class as the handler for methods on its channel. This static method creates a new instance that becomes the handler and is this when its methods are called.

register(): RemoveFunction

@returns A function that can be called to remove the handler.

@note this method should only be called once per channel. If it is called multiple times, subsequent calls replace the previous ones.

Returns - RemoveFunction

A function that can be called to remove the handler.

Defined in

Last Updated: 24 June, 2025