14 lines
349 B
Kotlin
14 lines
349 B
Kotlin
package de.pheerai.buzzer.setup
|
|
|
|
import io.ktor.server.application.*
|
|
import io.ktor.server.websocket.*
|
|
import java.time.Duration
|
|
|
|
fun Application.installWebSockets() {
|
|
install(WebSockets) {
|
|
pingPeriod = Duration.ofSeconds(15)
|
|
timeout = Duration.ofSeconds(15)
|
|
maxFrameSize = Long.MAX_VALUE
|
|
masking = false
|
|
}
|
|
}
|