Пример #1
0
 private void DoSubscribe(WebSocketSender sender)
 {
     if (sender.Subscription == null)
     {
         sender.Subscription = Subscribe(sender);
     }
 }
Пример #2
0
 private void OnOpen(IWebSocketConnection connection)
 {
     lock (_clients)
     {
         var sender = new WebSocketSender(connection, Repository.GetRepositoryHash());
         _clients[connection.ConnectionInfo.Id] = sender;
     }
 }