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
5143de7a
Commit
5143de7a
authored
Feb 18, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unescaping CRLF before add text to textarea on chat examples
parent
92491f7c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ngx_http_push_stream_module_version.h
include/ngx_http_push_stream_module_version.h
+1
-1
chat.html
misc/examples/chat.html
+2
-2
chat_longpolling.html
misc/examples/chat_longpolling.html
+2
-2
No files found.
include/ngx_http_push_stream_module_version.h
View file @
5143de7a
...
@@ -27,6 +27,6 @@
...
@@ -27,6 +27,6 @@
#define NGX_HTTP_PUSH_STREAM_MODULE_VERSION_H_
#define NGX_HTTP_PUSH_STREAM_MODULE_VERSION_H_
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_TAG
=
ngx_string
(
"0.3.2"
);
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_TAG
=
ngx_string
(
"0.3.2"
);
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_COMMIT
=
ngx_string
(
"
01d608aaaa8e724a104b571461b66388d0dd5dc6
"
);
static
const
ngx_str_t
NGX_HTTP_PUSH_STREAM_COMMIT
=
ngx_string
(
"
92491f7c847bbc6bf092c08701438622770aab90
"
);
#endif
/* NGX_HTTP_PUSH_STREAM_MODULE_VERSION_H_ */
#endif
/* NGX_HTTP_PUSH_STREAM_MODULE_VERSION_H_ */
misc/examples/chat.html
View file @
5143de7a
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
var
chat
=
$
(
"
#chat
"
);
var
chat
=
$
(
"
#chat
"
);
if
(
eventMessage
!=
''
)
{
if
(
eventMessage
!=
''
)
{
var
values
=
$
.
parseJSON
(
eventMessage
);
var
values
=
$
.
parseJSON
(
eventMessage
);
var
line
=
values
.
nick
+
'
:
'
+
values
.
text
;
var
line
=
values
.
nick
+
'
:
'
+
values
.
text
.
replace
(
/
\\
r/g
,
'
\r
'
).
replace
(
/
\\
n/g
,
'
\n
'
)
;
if
(
chat
.
val
()
==
''
)
{
if
(
chat
.
val
()
==
''
)
{
chat
.
val
(
line
);
chat
.
val
(
line
);
}
else
{
}
else
{
...
@@ -90,8 +90,8 @@
...
@@ -90,8 +90,8 @@
function
_connect
(
channel
)
{
function
_connect
(
channel
)
{
pushstream
.
removeAllChannels
();
pushstream
.
removeAllChannels
();
pushstream
.
addChannel
(
channel
);
try
{
try
{
pushstream
.
addChannel
(
channel
);
pushstream
.
connect
();
pushstream
.
connect
();
}
catch
(
e
)
{
alert
(
e
)};
}
catch
(
e
)
{
alert
(
e
)};
...
...
misc/examples/chat_longpolling.html
View file @
5143de7a
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
var
chat
=
$
(
"
#chat
"
);
var
chat
=
$
(
"
#chat
"
);
if
(
eventMessage
!=
''
)
{
if
(
eventMessage
!=
''
)
{
var
values
=
$
.
parseJSON
(
eventMessage
);
var
values
=
$
.
parseJSON
(
eventMessage
);
var
line
=
values
.
nick
+
'
:
'
+
values
.
text
;
var
line
=
values
.
nick
+
'
:
'
+
values
.
text
.
replace
(
/
\\
r/g
,
'
\r
'
).
replace
(
/
\\
n/g
,
'
\n
'
)
;
if
(
chat
.
val
()
==
''
)
{
if
(
chat
.
val
()
==
''
)
{
chat
.
val
(
line
);
chat
.
val
(
line
);
}
else
{
}
else
{
...
@@ -90,8 +90,8 @@
...
@@ -90,8 +90,8 @@
function
_connect
(
channel
)
{
function
_connect
(
channel
)
{
pushstream
.
removeAllChannels
();
pushstream
.
removeAllChannels
();
pushstream
.
addChannel
(
channel
);
try
{
try
{
pushstream
.
addChannel
(
channel
);
pushstream
.
connect
();
pushstream
.
connect
();
}
catch
(
e
)
{
alert
(
e
)};
}
catch
(
e
)
{
alert
(
e
)};
...
...
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