> 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;
>>                         }
>
>
>
>

This is the step i do (OSX):

git clone https://github.com/unbit/uwsgi
cd uwsgi
make coroae
 ./uwsgi --http-socket :9090 --coroae 100 --psgi tests/websockets_chat.pl

then (be sure redis is running)

go to localhost:9090

do you get the same problem ?


(sorry if it looks useless but i just only want to be sure you have the
latest code and you are running things in the same way)

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

Reply via email to