picoweb icon indicating copy to clipboard operation
picoweb copied to clipboard

Websockets support

Open iBobik opened this issue 5 years ago • 2 comments

Is there some hack how to start websockets endpoint on some path?

iBobik avatar Nov 16 '18 19:11 iBobik

It's the same issue as in https://github.com/pfalcon/picoweb/issues/42 . Both TLS and Websockets are wrapper (or stacked) protocols on top of TCP (and can wrap each other too, e.g. websocket -> TLS -> TCP). Handling that efficiently is an open issue in uasyncio framework.

Actually, I did some initial-prototype, subject-to-change websocket implementation for uasyncio: https://github.com/pfalcon/micropython-lib/tree/master/uasyncio.websocket.server

Where I stopped IIRC is exactly at integrating it with picoweb, e.g. to proceed with the implementation of https://github.com/pfalcon/uremi .

You're welcome to play with that stuff.

pfalcon avatar Nov 18 '18 12:11 pfalcon

Could be helpful: https://github.com/hiway/micropython-uasyncio-uwebsockets-modules

iBobik avatar Jan 13 '19 16:01 iBobik