コード例 #1
0
 public static void Dispatch(WebSocketFrame frame)
 {
     lock (dispatcher) {
         dispatcher.listeners.ForEach(l => l.OnServerMessage(frame));
     }
 }
コード例 #2
0
 public void OnServerMessage(WebSocketFrame frame)
 {
     webSocketApplication?.SendMessage(frame);
 }