Static
castDecorator for casting response with defined types.
Protected
_callProtected
_hasRegisters the listener of the event.
Name of the event.
Listener to execute when the event is called.
Registers the listener of the event.
Emits the socket event. The response can be handled in the on
method.
Name of the event.
Emits the socket event. The response can be handled in the on
method.
Name of the event.
Socket event key.
Emits the socket event. The response can be handled in the on
method.
Name of the event.
Socket event key.
Event parameters.
Emits the socket event. The response can be handled in the on
method.
Name of the event.
Socket event key.
Event parameters.
Function called in the progress tick.
Calls the socket event.
Name of the event.
Calls the socket event.
Name of the event.
Event parameters.
Calls the socket event.
Name of the event.
Event parameters.
Timeout of the event.
Calls the socket event.
Name of the event.
Event parameters.
Timeout of the event.
Function called in the progress tick.
Registers socket event listener. This method should be called in componentDidMount
.
Removes the listener of the event.
Name of the event.
Removes the listener of the event.
Simple class to handle callbacks.
Typeparam
T Event map for the listeners as object with event name and the type of the arguments in the callback.
Example