diff --git a/build.gradle.kts b/build.gradle.kts index 5ced5bd5..da1639da 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "dev.schlaubi.lavakord" -version = "5.1.6" +version = "5.1.7" allprojects { repositories { diff --git a/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/AbstractLavakord.kt b/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/AbstractLavakord.kt index 66b07a1c..9158b9ed 100644 --- a/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/AbstractLavakord.kt +++ b/core/src/commonMain/kotlin/dev/schlaubi/lavakord/audio/internal/AbstractLavakord.kt @@ -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]. @@ -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