Update MockedBroadcastingEchoServer.cpp
This commit is contained in:
@@ -23,9 +23,9 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
|
|||||||
.maxPayloadLength = 300,
|
.maxPayloadLength = 300,
|
||||||
.idleTimeout = 10,
|
.idleTimeout = 10,
|
||||||
/* Handlers */
|
/* Handlers */
|
||||||
.open = [](auto *ws, auto *req) {
|
.open = [](auto *ws) {
|
||||||
/* Subscribe to anything */
|
/* Subscribe to anything */
|
||||||
ws->subscribe(req->getHeader("topic"));
|
ws->subscribe(/*req->getHeader(*/"topic"/*)*/);
|
||||||
},
|
},
|
||||||
.message = [](auto *ws, std::string_view message, uWS::OpCode opCode) {
|
.message = [](auto *ws, std::string_view message, uWS::OpCode opCode) {
|
||||||
if (message.length() && message[0] == 'C') {
|
if (message.length() && message[0] == 'C') {
|
||||||
|
|||||||
Reference in New Issue
Block a user