Class WebSocketDocs.RoundTripListenerEndpoint

java.lang.Object
org.eclipse.jetty.docs.programming.WebSocketDocs.RoundTripListenerEndpoint
All Implemented Interfaces:
Session.Listener
Enclosing class:
WebSocketDocs

public class WebSocketDocs.RoundTripListenerEndpoint extends Object implements Session.Listener
  • Constructor Details

    • RoundTripListenerEndpoint

      public RoundTripListenerEndpoint()
  • Method Details

    • onWebSocketOpen

      public void onWebSocketOpen(Session session)
      Description copied from interface: Session.Listener

      A WebSocket Session has opened successfully and is ready to be used.

      Applications can store the given Session as a field so it can be used to send messages back to the other peer.

      Specified by:
      onWebSocketOpen in interface Session.Listener
      Parameters:
      session - the WebSocket session
    • onWebSocketPong

      public void onWebSocketPong(ByteBuffer payload)
      Description copied from interface: Session.Listener

      A WebSocket PONG frame has been received.

      Specified by:
      onWebSocketPong in interface Session.Listener
      Parameters:
      payload - the PONG payload