Esempio n. 1
0
 public async Task Send(string socketId, string message)
 {
     await Send(WebSocketConnectionManager.GetSocketById(socketId), message);
 }
Esempio n. 2
0
 public async Task Send(string socketId, byte[] data)
 {
     await Send(WebSocketConnectionManager.GetSocketById(socketId), data);
 }
Esempio n. 3
0
 public virtual async Task OnConnected(WebSocket socket)
 {
     WebSocketConnectionManager.AddSocket(socket);
 }
Esempio n. 4
0
 public virtual async Task OnDisconnected(WebSocket socket)
 {
     await WebSocketConnectionManager.RemoveSocket(WebSocketConnectionManager.GetId(socket));
 }
Esempio n. 5
0
 public WebSocketHandler(WebSocketConnectionManager webSocketConnectionManager, StreamQueueManager streamManager)
 {
     WebSocketConnectionManager = webSocketConnectionManager;
     StreamManager = streamManager;
 }