EchoClient Question

21 views
Skip to first unread message

Adir Iakya

unread,
Jun 7, 2015, 12:12:44 AM6/7/15
to ws...@googlegroups.com
Hi :)


and it works great! One question, How can I ask it to send ping (the real opcode) to the server and see the pong that suppose to be sent back.

Thanks :)

Sylvain Hellegouarch

unread,
Jun 8, 2015, 4:31:18 AM6/8/15
to ws...@googlegroups.com
Hello,
For some reason, I forgot to add a dedicated ping() method in the WebSocket class. Until I add one, you can simply send a the appropriate message as follows:

from ws4py.messaging import PingControlMessage
self.send(PingControlMessage(data='beep'))

--
Reply all
Reply to author
Forward
0 new messages