Skip to content

MongoWireClient

Constructors

MongoWireClient

@LowLevelApi
suspend fun MongoWireClient(
    hostName: String, 
    port: Int, 
    factory: BsonFactory = BsonFactory(), 
    coroutineContext: CoroutineContext
): MongoWireClient

Types

Companion

object Companion

Functions

close

expect abstract fun close()

send

abstract suspend fun send(message: Message): ReceiveChannel<Message>

sendSingle

abstract suspend fun sendSingle(message: Message): Message

Sends a message that expects a single response.