public HandInputServer(String ipAddress, Int32 port) { server = new WebSocketServer(ipAddress, port); server.ClientConnected += new ClientConnectedEventHandler(OnClientConnected); handInputEngine = new HandInputEngine(); handInputEngine.HandInputEvent += new HandInputEventHandler(OnHandInputEvent); }
private void OnClientConnected(WebSocketServer sender, ClientConnectedEventArgs e) { connections.Add(e.Client); }
public GestureServer(String ipAddress, int port) { server = new WebSocketServer(ipAddress, port); server.ClientConnected += OnClientConnected; }
private void Start() { webSocket = new WebSocketServer(); webSocket.StartServer(); }