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