Commit c662fdbd authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

fix push_stream_message_template on examples

parent 49f62ed2
...@@ -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;
......
...@@ -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;
......
...@@ -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;
......
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