MicroWebSrv icon indicating copy to clipboard operation
MicroWebSrv copied to clipboard

WebSocket Critical Question ?

Open thevobos opened this issue 1 year ago • 3 comments

Hi, Thank You for created the this package.

How can i connect to my socket.io server my server ?.

thevobos avatar Mar 31 '23 12:03 thevobos

Hello and thank you @thevobos. MicroWebSrv is an HTTP(s) server with a plugin for WebSockets but it's not a "client". So, if you want to connect 2 serveurs, you must use a client "in" the server :) That's ok for you?

jczic avatar Mar 31 '23 13:03 jczic

Thank you for your quick response.

I couldn't find any client libraries for socket.io. Any chance of guidance on this?

"https://github.com/danni/uwebsockets/tree/esp8266/usocketio" I found this library but could not use it.

"https://github.com/miguelgrinberg/python-socketio" I'm not sure if this library works.

thevobos avatar Mar 31 '23 13:03 thevobos

There are not many websockets "clients" for micropython unlike python. The most used one seems to be Danni's but indeed it is proposed for esp8266. You can read this : https://github.com/danni/uwebsockets/issues/7 (ESP32 support...)

jczic avatar Mar 31 '23 14:03 jczic