# 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:
  - vertx-web-js/bridge_event.js, line 33

### Methods

#### getRawMessage() → {Object}

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. If the returned message is modified, BridgeEvent#setRawMessage should be called with the new message.

Source:
  - vertx-web-js/bridge_event.js, line 82

##### Returns:

the raw JSON message for the event

Type
  Object

#### rawMessage() → {Object}

Use BridgeEvent#getRawMessage instead, will be removed in 3.3

Source:
  - vertx-web-js/bridge_event.js, line 63

##### Returns:

Type
  Object

#### 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:
  - vertx-web-js/bridge_event.js, line 97

##### Returns:

this reference, so it can be used fluently

Type
  BridgeEvent

#### socket() → {SockJSSocket}

Get the SockJSSocket instance corresponding to the event

Source:
  - vertx-web-js/bridge_event.js, line 112

##### Returns:

the SockJSSocket instance

Type
  SockJSSocket

#### type() → {Object}

Source:
  - vertx-web-js/bridge_event.js, line 46

##### Returns:

- the type of the event
- Type
    Object