Update MockedBroadcastingEchoServer.cpp

This commit is contained in:
Alex Hultman
2020-06-20 22:22:54 +02:00
committed by GitHub
parent 5edd01b666
commit 030758c2a9
+2 -2
View File
@@ -23,9 +23,9 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
.maxPayloadLength = 300,
.idleTimeout = 10,
/* Handlers */
.open = [](auto *ws, auto *req) {
.open = [](auto *ws) {
/* Subscribe to anything */
ws->subscribe(req->getHeader("topic"));
ws->subscribe(/*req->getHeader(*/"topic"/*)*/);
},
.message = [](auto *ws, std::string_view message, uWS::OpCode opCode) {
if (message.length() && message[0] == 'C') {