Pithikos / python-websocket-server

A simple fully working websocket-server in Python with no external dependencies
MIT License
1.13k stars 380 forks source link

Support with asyncio #75

Closed applebee1558 closed 2 years ago

applebee1558 commented 5 years ago

Have this library work asynchronously, to make some aspects non-blocking, and for compability with other libraries.

kj7rrv commented 4 years ago

Hi, you might want to check out other libraries that do use asyncio. Perhaps https://github.com/aaugustin/websockets would work?

applebee1558 commented 4 years ago

Ok I don’t even remember opening this issue since it’s so long ago, but thanks. I’ve used websockets for a long time now.

Pithikos commented 2 years ago

Hi, so the aim of this project is to fill the gap. Most websocket libraries use asyncio atm but there's good cases where a threaded library makes life easier (e.g. testing). So there's no plans to support asyncio.

HOWEVER It's super easy to patch this library with gevent to get it working in an asyncio fashion.