Class SocketHandler

Handler class for WebSockets that manages the way WebSocket instances are cached and created.

Constructor

class SocketHandler()

Methods

get

SocketHandler.get()
Returns SocketHandler:
 

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.

Table Of Contents

Previous topic

Class RuleSet

Next topic

Class Stylesheet