Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TcpEventBusBridge

TCP EventBus bridge for Vert.x

Hierarchy

  • TcpEventBusBridge

Index

Methods

Methods

close

  • close(): PromiseLike<void>
  • close(handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Close the current socket.

    Returns PromiseLike<void>

  • Close the current socket.

    Parameters

    • handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

listen

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

    Returns PromiseLike<TcpEventBusBridge>

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

    Parameters

    Returns TcpEventBusBridge

  • Listen on specific port and bind to specific address

    Parameters

    • port: number
    • address: string

    Returns PromiseLike<TcpEventBusBridge>

  • Listen on specific port and bind to specific address

    Parameters

    Returns TcpEventBusBridge

  • Listen on specific port

    Parameters

    • port: number

    Returns PromiseLike<TcpEventBusBridge>

  • Listen on specific port

    Parameters

    Returns TcpEventBusBridge

Static create

  • Parameters

    • vertx: Vertx

    Returns TcpEventBusBridge

  • Parameters

    • vertx: Vertx
    • options: BridgeOptions

    Returns TcpEventBusBridge

  • Parameters

    • vertx: Vertx
    • options: BridgeOptions
    • netServerOptions: NetServerOptions

    Returns TcpEventBusBridge

  • Parameters

    • vertx: Vertx
    • options: BridgeOptions
    • netServerOptions: NetServerOptions
    • eventHandler: ((res: BridgeEvent) => void) | Handler<BridgeEvent>

    Returns TcpEventBusBridge

Generated using TypeDoc