commonMain.com.apollographql.apollo.network.ws.WebSocket.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-runtime-kotlin-jvm Show documentation
Show all versions of apollo-runtime-kotlin-jvm Show documentation
Apollo GraphQL runtime library to support generated code
package com.apollographql.apollo.network.ws
import kotlinx.coroutines.channels.ReceiveChannel
import okio.ByteString
interface WebSocketFactory {
suspend fun open(headers: Map = emptyMap()): WebSocketConnection
}
interface WebSocketConnection : ReceiveChannel {
fun send(data: ByteString)
fun close()
}
expect class ApolloWebSocketFactory constructor(
serverUrl: String,
headers: Map = emptyMap()
) : WebSocketFactory
© 2015 - 2025 Weber Informatics LLC | Privacy Policy