danni / uwebsockets

Micropython websockets implementation
MIT License
182 stars 40 forks source link

response content type text/plain #11

Open caythanhgia opened 4 years ago

caythanhgia commented 4 years ago

Please help me,

i'm using socket.io server with nodejs

i'm created socketio request with "path = uri.path or '/' + 'socket.io/?EIO=3&transport=polling'" Socketio request return : content-type: text/plain; charset=UTF-8

error log: File "usocketio/client.py", line 83, in connect File "usocketio/protocol.py", line 43, in decode_payload IndexError: memoryview index out of range

danni commented 4 years ago

This code is for websockets. The other transports of SocketIO are not supported.