← index #408PR #228
Off-topic · high · value 2.104
QUERY · ISSUE

No Example for uasyncio SSL webserver

openby Asanga-Virajopened 2021-01-12updated 2021-01-12

No example for uasyncio SSL webserver. Also couldn't find any on the internet. Looking for support.

CANDIDATE · PULL REQUEST

WIP: uasyncio.websocket: Websocket implementation for uasyncio.

closedby pfalconopened 2017-11-03updated 2018-02-01

Q #1: Should this be in uasyncio package at all? Upstream doesn't have
this. Pro: will be easier for people do discover (see e.g.
#148)

Q #2: This provides implements 2 ways to create a WS connections:

  1. using start_ws_server(); 2) using wrapping existing StreamReader
    and StreamWriter. History: initial prototype of course used 2). But
    the idea was "it should be like the official start_server()!!1". But
    then I though how to integrate it e.g. with Picoweb, and became clear
    that 2) is the most flixble way. So, 1) is intended to be removed.

Q #3: Uses native websocket module for read path, but has own
write path due to micropython/micropython#3396

Q #4: Requires #227
due to micropython/micropython#3394 .

2 comments
pfalcon · 2017-11-03

@dpgeorge , @peterhinch : FYI

pfalcon · 2018-02-01

Merged.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied