new WebSocketConnector(url)
Parameters:
Name | Type | Description |
---|---|---|
url |
String |
Members
(static) websockets :Array.<connector.Connector>
Map of all available connectors to their respective websocket connections
Type:
- Array.<connector.Connector>
Methods
(static) create(connector, urlopt) → {connector.WebSocketConnector}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
connector |
connector.Connector | a connector |
|
url |
String |
<optional> |
The websocket connect script url |
Returns:
a websocket connection
openStream(tokenStorage, id) → {connector.ObservableStream}
Parameters:
Name | Type | Description |
---|---|---|
tokenStorage |
util.TokenStorage | |
id |
string | subscription ID |
Returns:
The channel for sending and receiving messages