Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
8e340def
Commit
8e340def
authored
Mar 05, 2015
by
Alexey Shamrin
Committed by
Wandenberg
Mar 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable output buffering in curl usage examples
Otherwise no output is visible.
parent
b3670af1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
README.textile
README.textile
+3
-3
subscribers.textile
docs/directives/subscribers.textile
+7
-7
No files found.
README.textile
View file @
8e340def
...
...
@@ -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!'
...
...
docs/directives/subscribers.textile
View file @
8e340def
...
...
@@ -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/(.*) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment