AbstractSocketServerService

AbstractSocketServerService ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Service:
Properties

NameTypeDescription
portnumber

WebSocket server port

uniqueClientIdnumber
uniqueClientIdBaseString

AbstractSocketServerService()

Service core which handles and dispatches WebSocket (i.e. real-time bidirectional communication) messages.

onConnection(webSocketClient)

Kind: instance method of AbstractSocketServerService

ParamType
webSocketClientWebSocket

send(clientId, message, [options])

Send a message

Kind: instance method of AbstractSocketServerService

ParamTypeDescription
clientIdstring
messageObject
[options]Object

Some options...

_onConnection(clientId, webSocketClient)

Implementation of the on server connection method

Kind: instance abstract method of AbstractSocketServerService
Access: protected

ParamTypeDescription
clientIdString

WebSocket client id

webSocketClientWebSocket

_send(clientId, message, [options])

Implementation to send a message

Kind: instance abstract method of AbstractSocketServerService
Access: protected

ParamTypeDescription
clientIdstring
messageObject
[options]Object

Some options...