generic microdot websocket send and receive #197
fabse-hack
started this conversation in
General
Replies: 1 comment 14 replies
-
Your index route is an HTTP route, it cannot receive or send WebSocket events. The HTML page that this route returns should make a WebSocket connection to a WebSocket route, and then you can send and receive from that second route. |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
here is a snippet from my actualley micropython robot:
can i change the code, that i can use ws.send and ws.receive generic in my main programm?
for example here:
i will change this ".replace" to "ws.send".
I have already tried several modifications in the code, but it does not work as intended...
Beta Was this translation helpful? Give feedback.
All reactions