ChannelContextListener

Listener for context broadcasts coming from a specific channel. Generated by ChannelBase.addContextListener.

Hierarchy

Index

Properties

channel

channel: Channel

The channel that this listener is observing.

Listener will trigger whenever a context is broadcast on this channel.

handler

handler: function

The handler for when this listener receives a context broadcast.

Type declaration

unsubscribe

unsubscribe: function

Unsubscribe the listener object. We will no longer receive context messages on this handler.

Calling this method has no effect if the listener has already been unsubscribed. To re-subscribe, call addContextListener again to create a new listener object.

Type declaration

    • (): void
    • Returns void