Skip to content

Commit f4207c0

Browse files
authored
Update READMORE.md (#1829)
Example Not Working. It should be modified. ping , pong handler should give std::string_view message argument. Otherwise, it throws error when compiling.
1 parent fa9a76d commit f4207c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/READMORE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ uWS::App().ws<PerSocketData>("/*", {
139139
.drain = [](auto *ws) {
140140
/* Check getBufferedAmount here */
141141
},
142-
.ping = [](auto *ws) {
142+
.ping = [](auto *ws, std::string_view message) {
143143

144144
},
145-
.pong = [](auto *ws) {
145+
.pong = [](auto *ws, std::string_view message) {
146146

147147
},
148148
.close = [](auto *ws, int code, std::string_view message) {

0 commit comments

Comments
 (0)