> Hello,
>
> I'm trying to build a psgi-coroae app with websocket support, that allows
> async notifications from server.
>
> Following the
> docs<http://uwsgi-docs.readthedocs.org/en/latest/WebSockets.html>
> I
> saw how its made in python chat async
> example<https://github.com/unbit/uwsgi/blob/master/tests/websockets_chat_async.py>.
> So I'm looking to do the same with perl
>
> In this example there is a call to uwsgi, to obtain de connection file
> descriptor:
> websocket_fd = uwsgi.connection_fd()
>
> So when the server wants to send a message to client throught websocket
> can
> use it.
>
> Is there any way to obtain this file descriptor in perl, or am I missing
> something?
>
> Thanks in advance.
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

This patch adds uwsgi::connection_fd

https://github.com/unbit/uwsgi/commit/20b5b7b0dc05c64203e1ffa3f97dbe853d526bfe

and a new option --psgi-enable-psgix-io

that enable the PSGI extension psgix.io that allows you to make things like:

$env->{psgix.io}->send("Hello World")

the extension is not enabled by default as it requires 3-4 syscalls that
could impact performance

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to