|
|
@ -15,6 +15,7 @@ import io.ktor.server.websocket.* |
|
|
|
import net.aiterp.git.ykonsole2.application.logging.log |
|
|
|
import net.aiterp.git.ykonsole2.infrastructure.ktor.YKonsoleResponseException |
|
|
|
import net.aiterp.git.ykonsole2.infrastructure.ktor.ykStatusResponse |
|
|
|
import java.time.Duration |
|
|
|
|
|
|
|
internal object YKonsoleErrorHandler |
|
|
|
|
|
|
@ -51,5 +52,6 @@ fun Application.installPlugins() { |
|
|
|
|
|
|
|
install(WebSockets) { |
|
|
|
contentConverter = JacksonWebsocketContentConverter(ykObjectMapper) |
|
|
|
pingPeriod = Duration.ofSeconds(15) |
|
|
|
} |
|
|
|
} |