-
Notifications
You must be signed in to change notification settings - Fork 3
ThorIO.Connection
MagnusThor edited this page Aug 30, 2016
·
2 revisions
Each client (WebSocket) connected to the engine creates a ThorIO.Connection. Each unique instance of a ThorIO.Connection has 1-n many ThorIO.Controller instances.
class Connection {
private controllers;
pingPongInterval: number;
id: string;
ws: any;
controllerInstances: Array<ThorIO.Controller>;
connections: Array<ThorIO.Connection>;
clientInfo: ThorIO.ClientInfo;
private methodInvoker(controller, method, data);
constructor(ws: any, connections: Array<Connection>, controllers: Array<Plugin<Controller>>);
hasController(alias: string): boolean;
removeController(alias: string): void;
getController(alias: string): Controller;
private addControllerInstance(controller);
private registerSealdController();
locateController(alias: string): Controller;
}