Hi guys,
I had searched in the offical docs but I didn't find a websocket client module, can anyone tell me is there a module in micropython?
So I built a websocket module use usocket, but socket.recv will block, I used socket.setblocking(0), then it will raise error "EAGAIN".
I am a green hand in python.
A websocket client
- rubydesign
- Posts: 3
- Joined: Wed Mar 31, 2021 1:19 pm
Re: A websocket client
Moi dauntless
j
i am wondering the very same (also green). I have found a websocket module that is built in.
Ie for a socket s you can
But zero docs. Found the code at https://github.com/micropython/micropyt ... ebsocket.c
but that does not help me.
This lack of docs seems a strange omission, since the code is 5 years old. And the server is included, so why not the client.
Keep me up to date if you (or anyone) find out more
Torsten
j
i am wondering the very same (also green). I have found a websocket module that is built in.
Ie for a socket s you can
Code: Select all
import websocket
ws = websocket.websocket(s)
but that does not help me.
This lack of docs seems a strange omission, since the code is 5 years old. And the server is included, so why not the client.
Keep me up to date if you (or anyone) find out more
Torsten