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);
        }
Exemplo n.º 2
0
 public mywebsocket(WebSocketCollectionWithID mywebsocketcollection)
 {
     clients = mywebsocketcollection;
     mywebsocketcollection.Add(this);
 }