mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
ping websocket, avoid cloudflare auto disconnect
This commit is contained in:
parent
83fe6f6234
commit
1667bfe2ec
@ -20,6 +20,8 @@ class ViaWebApp {
|
||||
}
|
||||
install(WebSockets) {
|
||||
maxFrameSize = Short.MAX_VALUE.toLong()
|
||||
pingPeriod = Duration.ofSeconds(60)
|
||||
timeout = Duration.ofSeconds(15)
|
||||
}
|
||||
|
||||
routing {
|
||||
@ -47,4 +49,4 @@ class ViaWebApp {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user