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, ornullclientFrame: the close frame this client sent, ornullisServer: 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.