Optional prototype: { Private _tokenPrivate callbackPrivate expectedPrivate expectedstates wether the client is connected
true as the client is always connected during test runs
Private messagePrivate outboundsReference to the current pool. A pool can be used to store and access data using Outbounds.
Static Private handlesStatic Private onThis is used to store the session token. It is automatically transmitted to the api once the client opens the connection. It can be used to authenticate the client.
Initializes the socket callback.
This callback will be called, once any message is sent from the ws api
Private expectThis allows to listen for outbound data to be received.
method label of the outbound
this is called once the data has been received
Private invokeThis method is called whenever a request transaction (route) has been sent to the server and a response has been received
SuccessHandlers can be used to show notifications on the client device.
method of the successfully executed method
This handles all received messages. Depending on expected message config and other route configuration, different methods are called.
message data
Protected sendStatic onStatic registerGenerated using TypeDoc
The WebsocketClient has direct access to the server. It is used to simulate the client. This is usually executed on the client.