Listener methods
This is the collection of listener methods within the WsServer
interface. There are only three listener methods, addClientIdsListener
, addPathIdsListener
, and delListener
.
addClientIdsListener
The addClientIdsListener
method registers a listener function with the WsServer
that will be called whenever there is a change in the clients connected to a path that a WsServer
is handling.
addPathIdsListener
The addPathIdsListener
method registers a listener function with the WsServer
that will be called whenever there is a change in the active paths that a WsServer
is handling.
delListener
The delListener
method removes a listener that was previously added to the WsServer
.