D
D
Delakey Blackhole2017-03-03 21:51:52
linux
Delakey Blackhole, 2017-03-03 21:51:52

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

20170303-48fv-30kb.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Curium2, 2017-03-03
@Curium2

I had to do it in php!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question