private void DoSubscribe(WebSocketSender sender) { if (sender.Subscription == null) { sender.Subscription = Subscribe(sender); } }
private void OnOpen(IWebSocketConnection connection) { lock (_clients) { var sender = new WebSocketSender(connection, Repository.GetRepositoryHash()); _clients[connection.ConnectionInfo.Id] = sender; } }