Skip to content
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

feature request: non blocking receive #51

Open
keiser1080 opened this issue May 11, 2016 · 0 comments
Open

feature request: non blocking receive #51

keiser1080 opened this issue May 11, 2016 · 0 comments

Comments

@keiser1080
Copy link

Hi,

could you add a non blocking receive method ?
uwsgi.websocket_recv_nb()
like https://github.com/unbit/uwsgi/blob/master/tests/websockets.py
or https://github.com/unbit/uwsgi/blob/master/tests/websockets_chat_async.py

i am trying to create an ssh bridge but using you library in place of geventwebsocket

like there https://github.com/aluzzardi/wssh
he is using two greenlet to achieve that,
but with uwsgi we can not call the send ir recv from a greenlet

take a look to this
https://github.com/aluzzardi/wssh/blob/master/wssh/server.py
https://github.com/aluzzardi/wssh/blob/master/bin/wsshd

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

1 participant