public static void Dispatch(WebSocketFrame frame) { lock (dispatcher) { dispatcher.listeners.ForEach(l => l.OnServerMessage(frame)); } }
public void OnServerMessage(WebSocketFrame frame) { webSocketApplication?.SendMessage(frame); }