Skip to content

Sans I/O implementation of Websockets #1633

Answered by Kludex
iudeen asked this question in Ideas
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iudeen
Comment options

iudeen Sep 2, 2022
Collaborator Author

Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants