From f4207c00f748c62f804cd44c41700333cd3a3b21 Mon Sep 17 00:00:00 2001 From: stellaryrock <145004495+stellaryrock@users.noreply.github.com> Date: Wed, 8 Jan 2025 23:59:42 +0900 Subject: [PATCH] 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. --- misc/READMORE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/READMORE.md b/misc/READMORE.md index 451ca8369..8c5822541 100644 --- a/misc/READMORE.md +++ b/misc/READMORE.md @@ -139,10 +139,10 @@ uWS::App().ws("/*", { .drain = [](auto *ws) { /* Check getBufferedAmount here */ }, - .ping = [](auto *ws) { + .ping = [](auto *ws, std::string_view message) { }, - .pong = [](auto *ws) { + .pong = [](auto *ws, std::string_view message) { }, .close = [](auto *ws, int code, std::string_view message) {