mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 17:37:43 +00:00
websocket-level pings
This commit is contained in:
@ -60,6 +60,8 @@ void RelayServer::runWebsocket(ThreadPool<MsgWebsocket>::Thread &thr) {
|
||||
|
||||
hubGroup = hub.createGroup<uWS::SERVER>(uWS::PERMESSAGE_DEFLATE | uWS::SLIDING_DEFLATE_WINDOW, cfg().relay__maxWebsocketPayloadSize);
|
||||
|
||||
if (cfg().relay__autoPingSeconds) hubGroup->startAutoPing(cfg().relay__autoPingSeconds * 1'000);
|
||||
|
||||
hubGroup->onHttpRequest([&](uWS::HttpResponse *res, uWS::HttpRequest req, char *data, size_t length, size_t remainingBytes){
|
||||
LI << "HTTP request for [" << req.getUrl().toString() << "]";
|
||||
|
||||
|
Reference in New Issue
Block a user