MCPcopy Create free account
hub / github.com/Tracktion/choc / handleWebSocketMessage

Method handleWebSocketMessage

examples/http_server.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 void handleWebSocketMessage (std::string_view message) override
96 {
97 std::cout << "Client ID " << clientID << " received websocket message: " << message << std::endl;
98
99 // for this demo, we'll just bounce back the same message we received, but
100 // obviously this can be anything..
101 sendWebSocketMessage (std::string (message));
102 }
103
104 int clientID = 0;
105};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected