Interface Session

All Superinterfaces:
AutoCloseable, Closeable, Configurable

public interface Session extends Configurable, Closeable

Session represents an active link of communication with a remote WebSocket endpoint.

Session APIs can be used to configure the various parameters that control the behavior of the WebSocket communication, such as Configurable.setMaxTextMessageSize(long), and to send WebSocket frames or messages to the other peer.

The passive link of communication that receives WebSocket events is Session.Listener.