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 Call this only once per channel. Each call registers an additional handler rather than replacing a previous one, so registering the same channel more than once causes every registered handler to run and reply to an invocation. To replace a handler, first call the RemoveFunction returned by the previous register.

Returns - RemoveFunction

A function that can be called to remove the handler.

Defined in

Last Updated: 03 August, 2026