-
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#getAsyncRemote--
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#getBasicRemote--
Returns the ConnectionManager for this connection. see ConnectionManager API
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--
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#getRequestURI--
@returns the Session Scope that is associated with this connection
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#getUserProperties--
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#isOpen--
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#isSecure--
Sends the message to the WebSocket client. Returns true if the connection was still open, or false if it was closed.
Sends the message to the WebSocket client asynchronously. Returns true if the connection was still open, or false if it was closed.
see https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html#setMaxIdleTimeout-long-
Subscribes the WebSocket connection to the given channel.
Unsubscribes the WebSocket connection from the given channel.
Unsubscribes the WebSocket connection from all channels.