Whoa. Fixed a super old bug in

WebSocketService::RespondWithInvalidRequest where the message type was
not properly formed.
This commit is contained in:
casey langen 2017-11-19 01:08:48 -08:00
parent 9a8f486658
commit 6e05c5f728

View File

@ -452,10 +452,10 @@ void WebSocketServer::RespondWithInvalidRequest(connection_hdl connection, const
json error = {
{ message::name, name },
{ message::id, id },
{ message::options,{
{ key::error, value::invalid }
} }
{ message::type, type::response },
{ message::options,{{ key::error, value::invalid }} }
};
wss->send(connection, error.dump().c_str(), websocketpp::frame::opcode::text);
}