public SocketModel(string uri) { Host_ = uri; Socket = new WebSocket(Host); MessageRecievedActions = new ActionDictionary(); Socket.MessageReceived += Socket_MessageReceived; }
public void Dispose() { Socket.Dispose(); MessageRecievedActions = new ActionDictionary(); }