API reference
API reference
Select your platform
No SDKs available
No versions available

MockWebSocket Class

Extends IWebSocket
Mock web socket handler

Properties

Events

Action OnOpen
Action< byte[], int, int > OnMessage
Action< string > OnError
Action< WebSocketCloseCode > OnClose
Action HandleConnect
Action< byte[]> HandleSend
Action HandleClose

Member Functions

MockWebSocket
( bool autoOpen )
void SimulateOpen ( )
void SimulateResponse
( byte [] bytes,
int offset,
int length )
void SimulateResponse
( WitResponseNode jsonData,
byte [] binaryData )
void SimulateError
( string error )
Method to begin web socket communication
Method to send byte data to a web socket
Method to close web socket communication with normal close code
Did you find this page helpful?
Thumbs up icon
Thumbs down icon