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

NativeWebSocketWrapper Class

Extends IWebSocket
An wrapper for NativeWebSocket to ensure it implements

Properties

The current state of the web socket client

Events

Callback when web socket is opened
Callback when message is received from web socket server
Callback when an error is received from web socket server
Callback when message is received from web socket server

Member Functions

Constructor that takes in url and headers and adds all callbacks.
Parameters
url
headers
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