-
Notifications
You must be signed in to change notification settings - Fork 6
WebSocket API
The WebSocket object is passed into many of the event handling methods as an argument named websocket. It implements the javax.websocket.Session interface, and allows you to interact with the connection via the methods below.
@returns the Application Scope that is associated with this connection
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#getId--
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#getMaxIdleTimeout--
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#getOpenSessions--
@returns the Session Scope that is associated with this connection
Subscribes the WebSocket connection to the given channel.
Unsubscribes the WebSocket connection from the given channel.
Unsubscribes the WebSocket connection from all channels.