Answer the question
In order to leave comments, you need to log in
Nginx + mod_push how to use broadcast?
configured the module like this ... but messages in the chat reach one by one, although it costs broadcast
location /publish/ {
set $push_channel_id $arg_cid;
push_store_messages off;
push_publisher;
}
location /listen/ {
add_header Access-Control-Allow-Origin *;
push_subscriber_concurrency broadcast;
set $push_channel_id $arg_cid;
default_type application/json;
push_subscriber;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question