Skip to content

Commit

Permalink
Enable WebSocket pings
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 10, 2023
1 parent 0b7acb9 commit dc37045
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "dev.schlaubi.lavakord"
version = "5.1.6"
version = "5.1.7"

allprojects {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import kotlinx.serialization.modules.SerializersModule
import kotlinx.serialization.modules.contextual
import kotlinx.serialization.modules.plus
import kotlin.collections.set
import kotlin.time.Duration.Companion.seconds

/**
* Abstract implementation of [LavaKord].
Expand Down Expand Up @@ -111,6 +112,7 @@ public abstract class AbstractLavakord internal constructor(
internal val gatewayClient = HttpClient(HttpEngine) {
install(WebSockets) {
contentConverter = KotlinxWebsocketSerializationConverter(json)
pingInterval = 30.seconds.inWholeMilliseconds
}

expectSuccess = true
Expand Down

0 comments on commit dc37045

Please sign in to comment.