mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
Added comment on the websocket example page
This commit is contained in:
1 parent
97668ba6c9
commit
5d27766424
2 files changed
+11
-6
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user