Buzzer/src/main/kotlin/de/pheerai/buzzer/setup/WebSockets.kt

15 lines
349 B
Kotlin
Raw Normal View History

2021-09-25 13:22:34 +02:00
package de.pheerai.buzzer.setup
2022-05-26 11:26:31 +02:00
import io.ktor.server.application.*
import io.ktor.server.websocket.*
2021-09-25 13:22:34 +02:00
import java.time.Duration
fun Application.installWebSockets() {
install(WebSockets) {
pingPeriod = Duration.ofSeconds(15)
timeout = Duration.ofSeconds(15)
maxFrameSize = Long.MAX_VALUE
masking = false
}
}