Commit 8e340def authored by Alexey Shamrin's avatar Alexey Shamrin Committed by Wandenberg

disable output buffering in curl usage examples

Otherwise no output is visible.
parent b3670af1
......@@ -68,9 +68,9 @@ one terminal and start playing http pubsub:
<pre>
# Subs
curl -s -v 'http://localhost/sub/my_channel_1'
curl -s -v 'http://localhost/sub/your_channel_1'
curl -s -v 'http://localhost/sub/your_channel_2'
curl -s -v --no-buffer 'http://localhost/sub/my_channel_1'
curl -s -v --no-buffer 'http://localhost/sub/your_channel_1'
curl -s -v --no-buffer 'http://localhost/sub/your_channel_2'
# Pubs
curl -s -v -X POST 'http://localhost/pub?id=my_channel_1' -d 'Hello World!'
......
......@@ -23,8 +23,8 @@ The websocket mode enable subscriber to use WebSocket protocol.
push_stream_channels_path $1;
}
curl localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:polling' #polling request on a streaming location
curl localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:long-polling' #long-polling request on a streaming location
curl -s --no-buffer localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:polling' #polling request on a streaming location
curl -s --no-buffer localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:long-polling' #long-polling request on a streaming location
# polling subscriber location
location /sub/(.*) {
......@@ -33,8 +33,8 @@ The websocket mode enable subscriber to use WebSocket protocol.
push_stream_channels_path $1;
}
curl localhost/sub/ch1 #polling request
curl localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:long-polling' #long-polling request on a polling location
curl -s --no-buffer localhost/sub/ch1 #polling request
curl -s --no-buffer localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:long-polling' #long-polling request on a polling location
# long polling subscriber location
location /sub/(.*) {
......@@ -43,8 +43,8 @@ The websocket mode enable subscriber to use WebSocket protocol.
push_stream_channels_path $1;
}
curl localhost/sub/ch1 #long-polling request
curl localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:polling' #polling request on a logn-polling location
curl -s --no-buffer localhost/sub/ch1 #long-polling request
curl -s --no-buffer localhost/sub/ch1 -H 'X-Nginx-PushStream-Mode:polling' #polling request on a logn-polling location
# eventsource subscriber location
location /sub/(.*) {
......@@ -53,7 +53,7 @@ The websocket mode enable subscriber to use WebSocket protocol.
push_stream_channels_path $1;
}
curl localhost/sub/ch1 #eventsource request
curl -s --no-buffer localhost/sub/ch1 #eventsource request
# eventsource subscriber location
location /sub/(.*) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment