static void accept() { Socket client = websocket.AcceptSocket(); if (client != null) { clientlist.Add(new ClientInstance(client)); } }
static void Main(string[] args) { Console.Title = "jsserver3"; websocket = new Websocket(IPAddress.Any, 8001); while (true) { Socket client = websocket.AcceptSocket(); if (client != null) clientlist.Add(new ClientInstance(client)); receiveData(); sendData(); } }
static void Main(string[] args) { Console.Title = "jsserver3"; websocket = new Websocket(IPAddress.Any, 8001); while (true) { Socket client = websocket.AcceptSocket(); if (client != null) { clientlist.Add(new ClientInstance(client)); } receiveData(); sendData(); } }