Yes, I'm at last commit (22e958fe35a088082cff9121ddfbd46ad6c6e03) in master
branch.

Anyway adding a pair of AE::logs can be seen too, how only redis event is
triggered (if you publish externally from redis-cli), the websocket event
never is triggered.

> use AnyEvent::Log;
> ...
>                         if ($websocket_event) {
>                                 my $msg = uwsgi::websocket_recv_nb;
>                                 AE::log alert =>  "Websocket event! msg=
> $msg";
>                                 $redis_publisher->publish('foobar', $msg)
> if $msg;
>                                 $websocket_event = 0;
>                         }
>                         # any redis message available ?
>                         if ($redis_message) {
>                                 uwsgi::websocket_send('['.time().']
> '.$redis_message);
>                                 AE::log alert => "Redis event. msg=
> $redis_message";
>                                 $redis_message = undef;
>                         }



El 13/11/2013 14:36, "Roberto De Ioris" <[email protected]> escribió:

>
> > Hello,
> >
> > I'm trying the websocket_chat.pl example, but can't make it work.
> >
> > It seems that the websocket read event never wakeup, as much as press the
> > form button.
> >
> > However publishing in the redis 'foobar' channel from redis-cli, works
> > like
> > a charm, and all connected clients receive the message.
> >
> > Is it possible that the uwsgi::connection_fd function, recently
> > introduced,
> > has any problem? I'm using last source code version from github repo.
> >
> > Thanks.
> >
>
> be sure to have the very latest code, yersterday night i fixed a missing
> semicolon after the uwsgi::websocket_recv_nb:
>
>
> https://github.com/unbit/uwsgi/commit/47796b315ebafdf3b2ac9a61946308280948c153#diff-5a22f99b37050c5522795626679f4bcb
>
> >
> > 2013/11/12 Roberto De Ioris <[email protected]>
> >
> >>
> >> Should be useful as a reference for writing apps with PSGI +
> >> Coro::AnyEvent
> >>
> >> https://github.com/unbit/uwsgi/blob/master/tests/websockets_chat.pl
> >>
> >> --
> >> Roberto De Ioris
> >> http://unbit.it
> >> _______________________________________________
> >> uWSGI mailing list
> >> [email protected]
> >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> >>
> > _______________________________________________
> > uWSGI mailing list
> > [email protected]
> > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> >
>
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to