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>2014-08-10 14:11:33 +0400
committereidheim <eidheim@gmail.com>2014-08-10 14:11:33 +0400
commit7740324edce1f084dfe8ca848eb3b903f1beaa13 (patch)
treebf52b5c928381269eec8845ddcdc00d9c3e2acc6 /wss_examples.cpp
parent8742025b793151d58359dafd966a0c2d9ab729b6 (diff)
added close-reason to callbacks
Diffstat (limited to 'wss_examples.cpp')
-rw-r--r--wss_examples.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wss_examples.cpp b/wss_examples.cpp
index 4353d25..5dcd83a 100644
--- a/wss_examples.cpp
+++ b/wss_examples.cpp
@@ -42,7 +42,7 @@ int main() {
};
//See RFC 6455 7.4.1. for status codes
- echo.onclose=[](auto connection, int status) {
+ echo.onclose=[](auto connection, int status, const string& reason) {
cout << "Server: Closed connection " << (size_t)connection.get() << " with status code " << status << endl;
};
@@ -113,7 +113,7 @@ int main() {
client.send(ss);
};
- client.onclose=[](int status) {
+ client.onclose=[](int status, const string& reason) {
cout << "Client: Closed connection with status code " << status << endl;
};