public interface CanHandleConnects
Modifier and Type | Method and Description |
---|---|
default void |
addConnectionHandler(java.lang.Runnable handler)
Register a new message handler.
|
java.util.List<java.lang.Runnable> |
getConnectionHandlers()
Returns a list of all registered web socket connection handlers.
|
default void |
removeConnectionHandlers()
Removes existing web socket connection handlers.
|
java.util.List<java.lang.Runnable> getConnectionHandlers()
default void addConnectionHandler(java.lang.Runnable handler)
handler
- a callback function, which is going to be executed when web socket connection event arrivesdefault void removeConnectionHandlers()