WebsocketExposer
A server that handles websocket connections via SockJS
Constructor Summary
Public Constructor | ||
public |
constructor(config: Object, storeProxy: StoreProxy) Create a new WebsocketExposer instance |
Member Summary
Public Members | ||
public |
A map containing all connected clients |
|
public |
A stream that handles commands from clients |
|
public |
Restify server |
|
public |
Proxy to communicate with the store |
Method Summary
Public Methods | ||
public |
Send a event to all connected clients |
|
public |
Create a command stream |
|
public |
setupStream(server: Server, uri: String) Create a SockJS server (via shoe) and handle incoming connections |
Public Constructors
public constructor(config: Object, storeProxy: StoreProxy) source
Create a new WebsocketExposer instance
Params:
Name | Type | Attribute | Description |
config | Object | Configuration |
|
storeProxy | StoreProxy | Proxy to communicate with the store |