Expose payload to ping/pong events
This commit is contained in:
@@ -35,10 +35,10 @@ int main() {
|
||||
.drain = [](auto */*ws*/) {
|
||||
/* Check getBufferedAmount here */
|
||||
},
|
||||
.ping = [](auto */*ws*/) {
|
||||
.ping = [](auto */*ws*/, std::string_view) {
|
||||
|
||||
},
|
||||
.pong = [](auto */*ws*/) {
|
||||
.pong = [](auto */*ws*/, std::string_view) {
|
||||
|
||||
},
|
||||
.close = [](auto */*ws*/, int /*code*/, std::string_view /*message*/) {
|
||||
|
||||
@@ -37,10 +37,10 @@ int main() {
|
||||
.drain = [](auto */*ws*/) {
|
||||
/* Check ws->getBufferedAmount() here */
|
||||
},
|
||||
.ping = [](auto */*ws*/) {
|
||||
.ping = [](auto */*ws*/, std::string_view) {
|
||||
/* Not implemented yet */
|
||||
},
|
||||
.pong = [](auto */*ws*/) {
|
||||
.pong = [](auto */*ws*/, std::string_view) {
|
||||
/* Not implemented yet */
|
||||
},
|
||||
.close = [](auto */*ws*/, int /*code*/, std::string_view /*message*/) {
|
||||
|
||||
@@ -32,10 +32,10 @@ int main() {
|
||||
.drain = [](auto */*ws*/) {
|
||||
/* Check getBufferedAmount here */
|
||||
},
|
||||
.ping = [](auto */*ws*/) {
|
||||
.ping = [](auto */*ws*/, std::string_view) {
|
||||
|
||||
},
|
||||
.pong = [](auto */*ws*/) {
|
||||
.pong = [](auto */*ws*/, std::string_view) {
|
||||
|
||||
},
|
||||
.close = [](auto */*ws*/, int /*code*/, std::string_view /*message*/) {
|
||||
|
||||
@@ -106,10 +106,10 @@ int main() {
|
||||
.drain = [](auto */*ws*/) {
|
||||
/* Check ws->getBufferedAmount() here */
|
||||
},
|
||||
.ping = [](auto */*ws*/) {
|
||||
.ping = [](auto */*ws*/, std::string_view) {
|
||||
/* You don't need to handle this one, we automatically respond to pings as per standard */
|
||||
},
|
||||
.pong = [](auto */*ws*/) {
|
||||
.pong = [](auto */*ws*/, std::string_view) {
|
||||
/* You don't need to handle this one either */
|
||||
},
|
||||
.close = [](auto */*ws*/, int /*code*/, std::string_view /*message*/) {
|
||||
|
||||
@@ -59,10 +59,10 @@ int main() {
|
||||
.drain = [](auto */*ws*/) {
|
||||
/* Check ws->getBufferedAmount() here */
|
||||
},
|
||||
.ping = [](auto */*ws*/) {
|
||||
.ping = [](auto */*ws*/, std::string_view) {
|
||||
/* You don't need to handle this one, we automatically respond to pings as per standard */
|
||||
},
|
||||
.pong = [](auto */*ws*/) {
|
||||
.pong = [](auto */*ws*/, std::string_view) {
|
||||
/* You don't need to handle this one either */
|
||||
},
|
||||
.close = [](auto */*ws*/, int /*code*/, std::string_view /*message*/) {
|
||||
|
||||
Reference in New Issue
Block a user