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
c662fdbd
Commit
c662fdbd
authored
Nov 14, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix push_stream_message_template on examples
parent
49f62ed2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
event_source.textile
docs/examples/event_source.textile
+2
-2
long_polling.textile
docs/examples/long_polling.textile
+4
-4
websocket.textile
docs/examples/websocket.textile
+2
-2
No files found.
docs/examples/event_source.textile
View file @
c662fdbd
...
@@ -27,7 +27,7 @@ Create a html page with the content on **Client** part, access it from browser a
...
@@ -27,7 +27,7 @@ Create a html page with the content on **Client** part, access it from browser a
# positional channel path
# positional channel path
set $push_stream_channels_path $1;
set $push_stream_channels_path $1;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}
";
# ping frequency
# ping frequency
push_stream_ping_message_interval 10s;
push_stream_ping_message_interval 10s;
...
@@ -95,7 +95,7 @@ If needed you can change this behavior changing the javascript usage, like the e
...
@@ -95,7 +95,7 @@ If needed you can change this behavior changing the javascript usage, like the e
# positional channel path
# positional channel path
set $push_stream_channels_path $arg_channels;
set $push_stream_channels_path $arg_channels;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}
";
# ping frequency
# ping frequency
push_stream_ping_message_interval 10s;
push_stream_ping_message_interval 10s;
...
...
docs/examples/long_polling.textile
View file @
c662fdbd
...
@@ -25,7 +25,7 @@ Create a html page with the content on **Client** part, access it from browser a
...
@@ -25,7 +25,7 @@ Create a html page with the content on **Client** part, access it from browser a
set $push_stream_channels_path $1;
set $push_stream_channels_path $1;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}
";
# connection timeout
# connection timeout
push_stream_longpolling_connection_ttl 30s;
push_stream_longpolling_connection_ttl 30s;
...
@@ -91,7 +91,7 @@ If needed you can change this behavior changing the javascript usage, like the e
...
@@ -91,7 +91,7 @@ If needed you can change this behavior changing the javascript usage, like the e
set $push_stream_channels_path $arg_channels;
set $push_stream_channels_path $arg_channels;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}
";
# connection timeout
# connection timeout
push_stream_longpolling_connection_ttl 30s;
push_stream_longpolling_connection_ttl 30s;
...
@@ -159,7 +159,7 @@ If needed you can change this behavior using some additional directives and chan
...
@@ -159,7 +159,7 @@ If needed you can change this behavior using some additional directives and chan
set $push_stream_channels_path $1;
set $push_stream_channels_path $1;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\",\"tag\":~tag~,\"time\":\"~time~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\",\"tag\":~tag~,\"time\":\"~time~\"}
";
push_stream_last_received_message_tag $arg_tag;
push_stream_last_received_message_tag $arg_tag;
push_stream_last_received_message_time $arg_time;
push_stream_last_received_message_time $arg_time;
...
@@ -238,7 +238,7 @@ _The configuration in the example is the same used on long polling, just forcing
...
@@ -238,7 +238,7 @@ _The configuration in the example is the same used on long polling, just forcing
set $push_stream_channels_path $1;
set $push_stream_channels_path $1;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\",\"tag\":~tag~,\"time\":\"~time~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\",\"tag\":~tag~,\"time\":\"~time~\"}
";
push_stream_last_received_message_tag $arg_tag;
push_stream_last_received_message_tag $arg_tag;
push_stream_last_received_message_time $arg_time;
push_stream_last_received_message_time $arg_time;
...
...
docs/examples/websocket.textile
View file @
c662fdbd
...
@@ -24,7 +24,7 @@ Create a html page with the content on **Client** part, access it from browser a
...
@@ -24,7 +24,7 @@ Create a html page with the content on **Client** part, access it from browser a
# positional channel path
# positional channel path
set $push_stream_channels_path $1;
set $push_stream_channels_path $1;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}
";
push_stream_websocket_allow_publish on;
push_stream_websocket_allow_publish on;
...
@@ -91,7 +91,7 @@ If needed you can change this behavior changing the javascript usage, like the e
...
@@ -91,7 +91,7 @@ If needed you can change this behavior changing the javascript usage, like the e
# positional channel path
# positional channel path
set $push_stream_channels_path $arg_channels;
set $push_stream_channels_path $arg_channels;
# message template
# message template
push_stream_message_template "
'{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}'
";
push_stream_message_template "
{\"id\":~id~,\"channel\":\"~channel~\",\"text\":\"~text~\"}
";
push_stream_websocket_allow_publish on;
push_stream_websocket_allow_publish on;
...
...
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