Package: io.vertx.groovy.ext.web.handler.sockjs

## [Groovy] Class BridgeEvent

- io.vertx.groovy.ext.web.handler.sockjs.BridgeEvent

- Represents an event that occurs on the event bus bridge.

  Please consult the documentation for a full explanation.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `BridgeEvent (Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Object` | `getDelegate()`
    `Map<String, Object>` | `rawMessage()` Get the raw JSON message for the event.
    `SockJSSocket` | `socket()` Get the SockJSSocket instance corresponding to the event
    `BridgeEventType` | `type()` @return Returns: the type of the event

- - ### Constructor Detail

    - #### BridgeEvent(Object delegate)

  - ### Method Detail

    - #### Object getDelegate()

    - #### Map<String, Object> rawMessage()

      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.

      Returns:
        the raw JSON message for the event

    - #### SockJSSocket socket()

      Get the SockJSSocket instance corresponding to the event

      Returns:
        the SockJSSocket instance

    - #### BridgeEventType type()

      Returns:
        the type of the event