Class: BridgeEvent

vertx-web-js/bridge_event~ BridgeEvent

new BridgeEvent()

Represents an event that occurs on the event bus bridge.

Please consult the documentation for a full explanation.

Source:

Methods

cause() → {todo}

Source:
Returns:
Type
todo

complete(arg0)

Parameters:
Name Type Description
arg0 boolean
Source:

completer() → {function}

Source:
Returns:
Type
function

compose(handler, next) → {Future}

Parameters:
Name Type Description
handler function
next Future
Source:
Returns:
Type
Future

fail(arg0)

Parameters:
Name Type Description
arg0 string
Source:

failed() → {boolean}

Source:
Returns:
Type
boolean

getRawMessage() → {Object}

Source:
Returns:
Type
Object

isComplete() → {boolean}

Source:
Returns:
Type
boolean

map(value) → {Future}

Parameters:
Name Type Description
value Object
Source:
Returns:
Type
Future

mapEmpty() → {Future}

Source:
Returns:
Type
Future

otherwise(value) → {Future}

Parameters:
Name Type Description
value boolean
Source:
Returns:
Type
Future

otherwiseEmpty() → {Future}

Source:
Returns:
Type
Future

recover(mapper) → {Future}

Parameters:
Name Type Description
mapper todo
Source:
Returns:
Type
Future

result() → {boolean}

Source:
Returns:
Type
boolean

setHandler(arg0) → {Future}

Parameters:
Name Type Description
arg0 function
Source:
Returns:
Type
Future

setRawMessage(message) → {BridgeEvent}

Get the raw JSON message for the event. This will be null for SOCKET_CREATED or SOCKET_CLOSED events as there is no message involved.
Parameters:
Name Type Description
message Object the raw message
Source:
Returns:
this reference, so it can be used fluently
Type
BridgeEvent

socket() → {SockJSSocket}

Get the SockJSSocket instance corresponding to the event
Source:
Returns:
the SockJSSocket instance
Type
SockJSSocket

succeeded() → {boolean}

Source:
Returns:
Type
boolean

tryComplete(arg0) → {boolean}

Parameters:
Name Type Description
arg0 boolean
Source:
Returns:
Type
boolean

tryFail(arg0) → {boolean}

Parameters:
Name Type Description
arg0 string
Source:
Returns:
Type
boolean

type() → {Object}

Source:
Returns:
Type
Object