Static Method Summary
Static Public Methods | ||
public static |
getInstance(): Core Gets the server instance |
Constructor Summary
Public Constructor | ||
public |
constructor(cfg: Object, options: Object) Creates a new instance |
Member Summary
Public Members | ||
public |
app: Express |
|
public |
httpServer: http.Server | https.Server |
|
public |
|
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
Initializes the server |
|
public |
Broadcast given event to client |
|
public |
broadcastAll(name: string): * Broadcast given event to all clients |
|
public |
broadcastUser(username: String, name: string): * Broadcast given event to client filtered by username |
|
public |
Destroys the instance |
|
public |
async listen(): * Opens HTTP server |
|
public |
Starts the server |
Static Public Methods
Public Constructors
Public Methods
public broadcast(name: string, params: Array, filter: Function) source
Broadcast given event to client
public broadcastUser(username: String, name: string): * source
Broadcast given event to client filtered by username
Return:
* |