vertx / io.vertx.ext.kotlin.eventbus.bridge.tcp / io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge / listenAwait

listenAwait

suspend fun TcpEventBusBridge.listenAwait(): TcpEventBusBridge

Listen on default port 7000 with a handler to report the state of the socket listen operation.

Parameters

handler - the result handler

Returnself

suspend fun TcpEventBusBridge.listenAwait(port: Int, address: String): TcpEventBusBridge

Listen on specific port and bind to specific address

Parameters

port - tcp port

address - tcp address to the bind

handler - the result handler

Returnself

suspend fun TcpEventBusBridge.listenAwait(port: Int): TcpEventBusBridge

Listen on specific port

Parameters

port - tcp port

handler - the result handler

Returnself