Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 62d9175

Browse files
committed
Improved comments on the echo thrice example
1 parent fb1935a commit 62d9175

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ws_examples.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ int main() {
5858
};
5959

6060
//Example 2: Echo thrice
61-
// Send a received message three times back to the client
61+
// Demonstrating queuing of messages by sending a received message three times back to the client.
62+
// send_stream2 is automatically queued by the library after the first send call,
63+
// and send_stream3 is queued after the first send call through its callback
6264
// Test with the following JavaScript:
6365
// var ws=new WebSocket("ws://localhost:8080/echo_thrice");
6466
// ws.onmessage=function(evt){console.log(evt.data);};

wss_examples.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ int main() {
5858
};
5959

6060
//Example 2: Echo thrice
61-
// Send a received message three times back to the client
61+
// Demonstrating queuing of messages by sending a received message three times back to the client.
62+
// send_stream2 is automatically queued by the library after the first send call,
63+
// and send_stream3 is queued after the first send call through its callback
6264
// Test with the following JavaScript:
6365
// var wss=new WebSocket("wss://localhost:8080/echo_thrice");
6466
// wss.onmessage=function(evt){console.log(evt.data);};

0 commit comments

Comments
 (0)