Merge pull request #29 from fiatjaf/websocat-friendly

be friendly to people using websocat to debug
This commit is contained in:
Doug Hoyte
2023-04-20 14:24:25 -04:00
committed by GitHub

View File

@ -63,6 +63,9 @@ void RelayServer::runIngester(ThreadPool<MsgIngester>::Thread &thr) {
} else {
throw herr("unrecognised yesstr request");
}
} else if (msg->payload == "\n") {
// Do nothing.
// This is for when someone is just sending newlines on websocat for debugging purposes.
} else {
throw herr("unparseable message");
}