Class WebSocketClientConnectionHandler
java.lang.Object
org.jivesoftware.openfire.websocket.WebSocketClientConnectionHandler
This class handles all WebSocket events for the corresponding connection with a remote peer, analogous to the
function of
NettyClientConnectionHandler
for TCP connections.
Specifically the XMPP session is managed concurrently with the WebSocket session, including all
framing and authentication requirements. Packets received from the remote peer are forwarded as
needed via a SessionPacketRouter
, and packets destined for the remote peer are forwarded
via the corresponding RemoteEndpoint
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemProperty<Boolean>
static final SystemProperty<Duration>
static final SystemProperty<Boolean>
Controls if clients that do websockets without the required XMPP framing will get their 'stream' element names replaced, so that they are able to connect. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the max duration that a connection can be idle before being closed.void
void
onConnect
(org.eclipse.jetty.ee8.websocket.api.Session session) void
void
onTextMethod
(String stanza)
-
Field Details
-
STREAM_SUBSTITUTION_ENABLED
Controls if clients that do websockets without the required XMPP framing will get their 'stream' element names replaced, so that they are able to connect. -
KEEP_ALIVE_FRAME_PING_ENABLED_PROPERTY
-
KEEP_ALIVE_FRAME_PING_INTERVAL_PROPERTY
-
-
Constructor Details
-
WebSocketClientConnectionHandler
public WebSocketClientConnectionHandler()
-
-
Method Details
-
onConnect
@OnWebSocketConnect public void onConnect(org.eclipse.jetty.ee8.websocket.api.Session session) -
onClose
-
onTextMethod
-
onError
-
getMaxIdleTime
Returns the max duration that a connection can be idle before being closed.- Returns:
- the max duration that a connection can be idle.
-