private WebSocketHandler createnewroom()
        {
            WebSocketCollectionWithID new_websocket_collection = new WebSocketCollectionWithID(singletonlistofwebsocketcollections._listofwebsocketcollections.Count + 1);
            mywebsocket newwebsocket = new mywebsocket(new_websocket_collection);

            singletonlistofwebsocketcollections._listofwebsocketcollections.Add(new_websocket_collection);
            return(newwebsocket);
        }
예제 #2
0
 public mywebsocket(WebSocketCollectionWithID mywebsocketcollection)
 {
     clients = mywebsocketcollection;
     mywebsocketcollection.Add(this);
 }