jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
640 stars 115 forks source link

WebSocket Critical Question ? #78

Open thevobos opened 1 year ago

thevobos commented 1 year ago

Hi, Thank You for created the this package.

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

jczic commented 1 year ago

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?

thevobos commented 1 year ago

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.

jczic commented 1 year ago

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...)