Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
5d277664
Commit
5d277664
authored
Sep 20, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comment on the websocket example page
parent
97668ba6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
README.md
README.md
+1
-1
index.html
examples/websocket_html_root/index.html
+10
-5
No files found.
README.md
View file @
5d277664
...
...
@@ -10,7 +10,7 @@ Features
--------
-
Crossplatform - works on Windows, MacOS and most flavors of UNIX
-
CGI, SSL, SSI, Digest (MD5) authorization, Websocket
s
, WEbDAV support
-
CGI, SSL, SSI, Digest (MD5) authorization, Websocket, WEbDAV support
-
Resumed download, URL rewrite support
-
IP-based ACL, Windows service, GET, POST, HEAD, PUT, DELETE methods
-
Small footprint: executable size is 40 kB on Linux 2.6 i386 system
...
...
examples/websocket_html_root/index.html
View file @
5d277664
...
...
@@ -3,10 +3,6 @@
<title>
WebSocket Test
</title>
<script
language=
"javascript"
type=
"text/javascript"
>
// This javascript code creates a websocket to the URI "/foo",
// sends a message to it, waits for the reply, and sends an "exit" message.
// Server must terminate the conversation after receiving "exit" message.
var
writeToScreen
=
function
(
message
)
{
var
div
=
document
.
createElement
(
'div'
);
div
.
innerHTML
=
message
;
...
...
@@ -34,6 +30,15 @@
};
};
</script>
<h2>
WebSocket Test
</h2>
<style>
div
{
font
:
small
Verdana
;
}
</style>
<h2>
Mongoose WebSocket Test
</h2>
<div
style=
"width: 400px; color: #aaa; padding: 1em; "
>
This page code creates websocket to the URI "/foo",
sends a message to it, waits for the reply, then sends an "exit" message.
Server must echo all messages back, and terminate the conversation after
receiving the "exit" message.
</div>
<div
id=
"output"
></div>
</html>
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