【发布时间】:2014-08-14 07:08:50
【问题描述】:
我有一个 WampSharp 客户端,它每 1 分钟成功 ping 我在 python 中创建的 Wamp WS 服务器。
在收到 ping 时,我正在从服务器向客户端发送一条 pong 消息。
我想知道是否有任何处理程序可以在 WampSharp 客户端中处理 pong 消息的接收,以便我可以在客户端执行某些任务?
如果 pong 消息没有任何单独的处理程序,那么是否有任何处理程序来处理从服务器接收到的数据,就像在传统的 WebSocket 客户端中一样,如下所示?
webSocket.MessageReceived += new EventHandler<MessageReceivedEventArgs>(webSocket_MessageReceived);
提前致谢。
【问题讨论】:
标签: c# publish-subscribe autobahn autobahnws wampsharp