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

IWitWebSocketRequest Interface

An interface used to handle web socket upload and download communication.

Properties

The unique request identifier
The client user identifier that is making the request
The specific topic id that is being published to or received via subscription, if applicable.
The specific publish options for pubsub
The request timeout in milliseconds
Whether currently uploading data
Whether currently downloading data
Whether request is currently complete
A task that is used to track completion of this request
The response code if applicable
Error that occured during upload and/or download
Callback method when raw json response is received
Callback method the request should perform on first download
Callback method the request should perform once completed

Member Functions

Called once from the main thread to begin the upload process.
Parameters
uploadChunk
The method to be called as each json and/or binary chunk is ready to be uploaded
Called one or more times from the background thread when a chunk has returned
Parameters
jsonString
Raw json string.
jsonData
Decoded json data object.
binaryData
Decoded binary data chunk which may be null or empty.
Method that can be used to perform a cancellation on a request
Did you find this page helpful?
Thumbs up icon
Thumbs down icon