Skip to content

uasyncio.websocket.server import websocket #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrwhy-orig opened this issue Aug 23, 2019 · 1 comment
Open

uasyncio.websocket.server import websocket #348

mrwhy-orig opened this issue Aug 23, 2019 · 1 comment

Comments

@mrwhy-orig
Copy link

I like to use the uasyncio.websocket.server implementation but there is an import for websockets package defined. Where can I find this package?

@jomasnash
Copy link
Contributor

That is because server.py imports websocket instead of uwebsocket.

Fix:
diff --git a/uasyncio.websocket.server/uasyncio/websocket/server.py b/uasyncio.websocket.server/uasyncio/websocket/server.py
index 046b071..d721fb5 100644
--- a/uasyncio.websocket.server/uasyncio/websocket/server.py
+++ b/uasyncio.websocket.server/uasyncio/websocket/server.py
@@ -1,6 +1,6 @@
import uasyncio
import uhashlib, ubinascii
-import websocket
+import uwebsocket as websocket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants