vertx / io.vertx.kotlin.core.http / io.vertx.core.http.WebSocket

Extensions for io.vertx.core.http.WebSocket

closeAwait

suspend fun WebSocket.closeAwait(): Unit
suspend fun WebSocket.closeAwait(statusCode: Short): Unit
suspend fun WebSocket.closeAwait(statusCode: Short, reason: String?): Unit

Suspending version of method io.vertx.core.http.WebSocket.close

endAwait

suspend fun WebSocket.endAwait(data: Buffer): Unit
suspend fun WebSocket.endAwait(): Unit

Suspending version of method io.vertx.core.http.WebSocket.end

pipeToAwait

suspend fun WebSocket.pipeToAwait(dst: WriteStream<Buffer>): Unit

Suspending version of method io.vertx.core.http.WebSocket.pipeTo

writeAwait

suspend fun WebSocket.writeAwait(data: Buffer): Unit

Suspending version of method io.vertx.core.http.WebSocket.write

writeBinaryMessageAwait

suspend fun WebSocket.writeBinaryMessageAwait(data: Buffer): Unit

writeFinalBinaryFrameAwait

suspend fun WebSocket.writeFinalBinaryFrameAwait(data: Buffer): Unit

writeFinalTextFrameAwait

suspend fun WebSocket.writeFinalTextFrameAwait(text: String): Unit

writeFrameAwait

suspend fun WebSocket.writeFrameAwait(frame: WebSocketFrame): Unit

writePingAwait

suspend fun WebSocket.writePingAwait(data: Buffer): Unit

Suspending version of method io.vertx.core.http.WebSocket.writePing

writePongAwait

suspend fun WebSocket.writePongAwait(data: Buffer): Unit

Suspending version of method io.vertx.core.http.WebSocket.writePong

writeTextMessageAwait

suspend fun WebSocket.writeTextMessageAwait(text: String): Unit