예제 #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;
     }
 }