Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2017-04-26 09:59:21 +0300
committereidheim <eidheim@gmail.com>2017-04-26 09:59:21 +0300
commit62d9175d77f1497a5515de709cd9598c92e6949b (patch)
tree71baeb290987e8047b90ada114bb910e312bdbc2 /wss_examples.cpp
parentfb1935a66f4fc526b4904444fe39b574ecfd57ae (diff)
Improved comments on the echo thrice example
Diffstat (limited to 'wss_examples.cpp')
-rw-r--r--wss_examples.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/wss_examples.cpp b/wss_examples.cpp
index 449e1dc..69c36b2 100644
--- a/wss_examples.cpp
+++ b/wss_examples.cpp
@@ -58,7 +58,9 @@ int main() {
};
//Example 2: Echo thrice
- // Send a received message three times back to the client
+ // Demonstrating queuing of messages by sending a received message three times back to the client.
+ // send_stream2 is automatically queued by the library after the first send call,
+ // and send_stream3 is queued after the first send call through its callback
// Test with the following JavaScript:
// var wss=new WebSocket("wss://localhost:8080/echo_thrice");
// wss.onmessage=function(evt){console.log(evt.data);};