mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
Added comment on the websocket example page
This commit is contained in:
parent
97668ba6c9
commit
5d27766424
@ -10,7 +10,7 @@ Features
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
- Crossplatform - works on Windows, MacOS and most flavors of UNIX
|
- Crossplatform - works on Windows, MacOS and most flavors of UNIX
|
||||||
- CGI, SSL, SSI, Digest (MD5) authorization, Websockets, WEbDAV support
|
- CGI, SSL, SSI, Digest (MD5) authorization, Websocket, WEbDAV support
|
||||||
- Resumed download, URL rewrite support
|
- Resumed download, URL rewrite support
|
||||||
- IP-based ACL, Windows service, GET, POST, HEAD, PUT, DELETE methods
|
- IP-based ACL, Windows service, GET, POST, HEAD, PUT, DELETE methods
|
||||||
- Small footprint: executable size is 40 kB on Linux 2.6 i386 system
|
- Small footprint: executable size is 40 kB on Linux 2.6 i386 system
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
<title>WebSocket Test</title>
|
<title>WebSocket Test</title>
|
||||||
<script language="javascript" type="text/javascript">
|
<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 writeToScreen = function(message) {
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.innerHTML = message;
|
div.innerHTML = message;
|
||||||
@ -34,6 +30,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
</script>
|
</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>
|
<div id="output"></div>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user