You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value will be b'chat' if using same handshake information like the one on wiki.
So using join will result in TypeError: sequence item 0: expected str instance, int found.
I notice this code haven't been changed for 5 years. And I try to find an example of cherrypy and ws4py which contain a setting of Sec-WebSocket-Protocol for websocket server. But I can't find any. I also check the handshake information sent by simple example, and it didn't contain a Sec-WebSocket-Protocol header.
A more astonishing thing is there is no test about Sec-WebSocket-Protocol in test_client.py.
The text was updated successfully, but these errors were encountered:
WebSocket-for-Python/ws4py/client/__init__.py
Lines 312 to 316 in 7f43f2a
The value will be
b'chat'
if using same handshake information like the one on wiki.So using
join
will result inTypeError: sequence item 0: expected str instance, int found
.I notice this code haven't been changed for 5 years. And I try to find an example of cherrypy and ws4py which contain a setting of
Sec-WebSocket-Protocol
for websocket server. But I can't find any. I also check the handshake information sent by simple example, and it didn't contain aSec-WebSocket-Protocol
header.A more astonishing thing is there is no test about
Sec-WebSocket-Protocol
intest_client.py
.The text was updated successfully, but these errors were encountered: