send

abstract fun send(data: ByteString)

Sends a binary message asynchronously.

There is no flow control. If the application is sending messages too fast, the connection should be closed and an error should be sent in a subsequent receive call. See https://github.com/square/okhttp/issues/3848


abstract fun send(string: String)

Sends a text message asynchronously.

There is no flow control. If the application is sending messages too fast, the connection should be closed and an error should be sent in a subsequent receive call. See https://github.com/square/okhttp/issues/3848