danni / uwebsockets

Micropython websockets implementation
MIT License
190 stars 43 forks source link

response content type text/plain #11

Open caythanhgia opened 5 years ago

caythanhgia commented 5 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 5 years ago

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