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