public WebSocketJSONConnectionImplementation(IWebSocketJSONConnection connection) { Connection = connection; Connection.OnMessage += HandleMessage; Connection.OnClose += HandleClose; Connection.OnError += HandleError; Connection.Listen(); }
public Connection(IWebSocketJSONConnection connection) { Implementation = new WebSocketJSONConnectionImplementation(connection); }