Skip to content

Websocket.Disconnected ​

com.jsmacrosce.jsmacros.core.library.impl.classes.Websocket.Disconnected

Details supplied to onDisconnect by the client library.

Nested type declared in Websocket.

Constructors ​

new Websocket.Disconnected ​

new Websocket.Disconnected(WebSocketFrame serverFrame, WebSocketFrame clientFrame, boolean isServer)#
Holds the disconnection details passed to onDisconnect.

Parameters:

  • serverFrame: the close frame the server sent, or null
  • clientFrame: the close frame this client sent, or null
  • isServer: whether the server started the handshake

Fields ​

clientFrame ​

clientFrame: WebSocketFrame#
The client close frame supplied by the client library, or null.

isServer ​

isServer: boolean#
Whether the server started the closing handshake, as reported by the client library.

serverFrame ​

serverFrame: WebSocketFrame#
The server close frame supplied by the client library, or null.