When I test the following code:
CROW_WEBSOCKET_ROUTE(crowApp, "/test")
.onopen([&](crow::websocket::connection &conn) {
conn.send_text("Error with query params");
conn.close("error", crow::websocket::PolicyViolated);
})
.onclose([&](crow::websocket::connection &conn, const std::string &reason, uint16_t code) {
// This gets called twice?
})
I never get the Error with query params message.
When I test the following code:
I never get the
Error with query paramsmessage.