mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-22 12:05:45 +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) {
|
install(WebSockets) {
|
||||||
maxFrameSize = Short.MAX_VALUE.toLong()
|
maxFrameSize = Short.MAX_VALUE.toLong()
|
||||||
|
pingPeriod = Duration.ofSeconds(60)
|
||||||
|
timeout = Duration.ofSeconds(15)
|
||||||
}
|
}
|
||||||
|
|
||||||
routing {
|
routing {
|
||||||
|
Loading…
Reference in New Issue
Block a user