fm.liveswitch.WebSocketBase Class Reference

WebSocket base properties/methods. More...

Public Member Functions

 WebSocketBase ()
 

Protected Member Functions

void raiseCloseComplete (fm.liveswitch.WebSocketCloseArgs closeArgs, fm.liveswitch.WebSocketStatusCode statusCode, String reason)
 Raises the close complete callback. More...
 
void raiseOpenFailure (fm.liveswitch.WebSocketOpenArgs openArgs, fm.liveswitch.WebSocketStatusCode statusCode, java.lang.Exception exception)
 Raises the open failure callback. More...
 
void raiseOpenSuccess (fm.liveswitch.WebSocketOpenArgs openArgs)
 Raises the open success callback. More...
 
void raiseReceive (fm.liveswitch.WebSocketOpenArgs openArgs, String textMessage, byte[] binaryMessage)
 Raises the receive callback. More...
 
void raiseStreamFailure (fm.liveswitch.WebSocketOpenArgs openArgs, fm.liveswitch.WebSocketStatusCode statusCode, java.lang.Exception exception)
 Raises the stream failure callback. More...
 

Detailed Description

WebSocket base properties/methods.

Constructor & Destructor Documentation

◆ WebSocketBase()

fm.liveswitch.WebSocketBase.WebSocketBase ( )

Member Function Documentation

◆ raiseCloseComplete()

void fm.liveswitch.WebSocketBase.raiseCloseComplete ( fm.liveswitch.WebSocketCloseArgs  closeArgs,
fm.liveswitch.WebSocketStatusCode  statusCode,
String  reason 
)
protected

Raises the close complete callback.

Parameters
closeArgsThe close arguments.
statusCodeThe status code.
reasonThe reason.

◆ raiseOpenFailure()

void fm.liveswitch.WebSocketBase.raiseOpenFailure ( fm.liveswitch.WebSocketOpenArgs  openArgs,
fm.liveswitch.WebSocketStatusCode  statusCode,
java.lang.Exception  exception 
)
protected

Raises the open failure callback.

Parameters
openArgsThe open arguments.
statusCodeThe status code.
exceptionThe exception.

◆ raiseOpenSuccess()

void fm.liveswitch.WebSocketBase.raiseOpenSuccess ( fm.liveswitch.WebSocketOpenArgs  openArgs)
protected

Raises the open success callback.

Parameters
openArgsThe open arguments.

◆ raiseReceive()

void fm.liveswitch.WebSocketBase.raiseReceive ( fm.liveswitch.WebSocketOpenArgs  openArgs,
String  textMessage,
byte[]  binaryMessage 
)
protected

Raises the receive callback.

Parameters
openArgsThe open arguments.
textMessageThe text message.
binaryMessageThe binary message.

◆ raiseStreamFailure()

void fm.liveswitch.WebSocketBase.raiseStreamFailure ( fm.liveswitch.WebSocketOpenArgs  openArgs,
fm.liveswitch.WebSocketStatusCode  statusCode,
java.lang.Exception  exception 
)
protected

Raises the stream failure callback.

Parameters
openArgsThe open arguments.
statusCodeThe status code.
exceptionThe exception.