There was an error while loading. Please reload this page.
Source file: server/js/ws.js
Abstract class for server objects
port
[number]
connection_callback
[function]
error_callback
_connections
[array]
Connection
init(port)
onConnect(callback)
onError(callback)
broadcast(message)
forEachConnection(callback)
addConnection(connection)
removeConnection(id)
getConnection(id)
Assigns port to this.port.
this.port
Assigns callback to this.connection_callback.
callback
this.connection_callback
Assigns callback to this.error_callback.
this.error_callback
Throws "not implemented".
Loops through this._connections and runs callback, passing the connection object as an argument.
this._connections
Deletes this._connections[id].
this._connections[id]
Returns this._connections[id].