org.springframework.web.socket.messaging

## Class SessionConnectedEvent

- java.lang.Object
- - java.util.EventObject
  - - org.springframework.context.ApplicationEvent
    - - org.springframework.web.socket.messaging.SessionConnectedEvent

- All Implemented Interfaces:
    Serializable

      public class SessionConnectedEvent
      extends ApplicationEvent

  A connected event represents the server response to a client's connect request. See `SessionConnectEvent`.
  Since:
    4.0.3
  Author:
    Rossen Stoyanchev
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SessionConnectedEvent(Object source, Message<byte[]> message)` Create a new event.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Message<byte[]>` | `getMessage()` Return the connected message.
    `String` | `toString()`

    - ### Methods inherited from class org.springframework.context.ApplicationEvent

      `getTimestamp`

    - ### Methods inherited from class java.util.EventObject

      `getSource`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SessionConnectedEvent

          public SessionConnectedEvent(Object source,
                                       Message<byte[]> message)

      Create a new event.
      Parameters:
        `source` - the component that published the event (never `null`)
        `message` - the connected message

  - ### Method Detail

    - #### getMessage

          public Message<byte[]> getMessage()

      Return the connected message.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `EventObject`