Class SocketHandler
Handler class for WebSockets that manages the way WebSocket instances are cached and
created.
Constructor
-
class SocketHandler()
Methods
get
-
SocketHandler.get()
-
Gets the singleton instance.
getSocket
-
SocketHandler#getSocket(channel)
Arguments: |
- channel (String) – the channel of the socket
|
Returns Socket: | the websocket instance
|
Gets the socket associated to a particular channel.