-
I came across rather old discussion python-websockets/websockets#975 about Uvicorn using legacy API of Websockets. Are we still interested in supporting the modern (better?) approach of implementing Websockets? |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Sep 2, 2022
Replies: 1 comment 1 reply
-
We are, but you can implement it outside uvicorn, and if it gets attention, we can do a replacement at some point. You can create your own WebSocket protocol, and tell uvicorn to use it: import uvicorn
from ws_impl import IudeenWebSocketProtocol
if __name__ == "__main__":
uvicorn.run("main.app", ws=IudeenWebSocketProtocol) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are, but you can implement it outside uvicorn, and if it gets attention, we can do a replacement at some point.
You can create your own WebSocket protocol, and tell uvicorn to use it: