Socket
Connect to the server via websockets
Constructor Summary
Public Constructor | ||
public |
constructor(instance: Game) Default constructor |
Member Summary
Public Members | ||
public |
Pulls out the client configuration from the Game instance |
|
public |
IO websocket connection |
|
public |
Whether or not this websocket has disconnected |
|
public |
Instance of the game |
|
public |
Whether or not this websocket is listening |
|
public |
Array of messages sent from the nodeJS server to the client side game |
Method Summary
Public Methods | ||
public |
connect() Loads the connection, attempts to create the websocket |
|
public |
Gets a message from the server |
|
public |
Sends a data packet from the client side to the server side |