Skip to content

Commit

Permalink
Update voice
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Mar 20, 2024
1 parent de5fe7e commit 756e38f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ suspend fun main(args: Array<String>) {
val token = args.firstOrNull() ?: error("token required")

val gateway = DefaultGateway { // optional builder for custom configuration
client = HttpClient(CIO) {
client = HttpClient {
install(WebSockets)
install(JsonFeature)
}
Expand Down
4 changes: 2 additions & 2 deletions voice/src/main/kotlin/gateway/DefaultVoiceGatewayBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import dev.kord.common.entity.Snowflake
import dev.kord.gateway.retry.LinearRetry
import dev.kord.gateway.retry.Retry
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.engine.okhttp.OkHttp
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.plugins.websocket.*
import io.ktor.serialization.kotlinx.json.*
Expand All @@ -23,7 +23,7 @@ public class DefaultVoiceGatewayBuilder(
public var eventFlow: MutableSharedFlow<VoiceEvent> = MutableSharedFlow(extraBufferCapacity = Int.MAX_VALUE)

public fun build(): DefaultVoiceGateway {
val client = client ?: HttpClient(CIO) {
val client = client ?: HttpClient(OkHttp) {
install(WebSockets)
install(ContentNegotiation) {
json()
Expand Down

0 comments on commit 756e38f

Please sign in to comment.