Class WebSocketDocs.ConfigureEndpoint

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

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

    • ConfigureEndpoint

      public ConfigureEndpoint()
  • 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