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

Websockets #71

Closed gpspelle closed 4 years ago

gpspelle commented 4 years ago

Hi,

I have this Django project running some websockets for internal communication. I'd like to know more about how to connect to them with your implementation of websockets. In normal python I'd do:

connect("ws://gpspelle.com/ws/chat/ble")

In your code, how'd it be?

MicroWebSrv(bindIP='gpspelle.com', webPath='/ws/chat/ble')

I am sorry if those are too basic questions. Thanks anyway.

gpspelle commented 4 years ago

Also, I've just realized that in 2018 there were no client websocket yet. https://github.com/jczic/MicroWebSrv/issues/25

jczic commented 4 years ago

Please, use MicroWebSrv2 : https://github.com/jczic/MicroWebSrv2. There is help, and examples for do that :)