IWitWebSocketRequest Interface
An interface used to handle web socket upload and download communication.
The priority of data submission
The specific topic id that is being published to or received via subscription, if applicable.
The request timeout in milliseconds
Whether currently uploading data
Whether currently downloading data
Whether request is currently complete
TaskCompletionSource< bool > Completion[Get]
A task that is used to track completion of this request
The response code if applicable
Error that occured during upload and/or download
Action< string > OnRawResponse[Get]
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
Called once from the main thread to begin the upload process.
ParametersuploadChunkThe method to be called as each json and/or binary chunk is ready to be uploaded
void HandleDownload ( string jsonString,
byte [] binaryData )
Called one or more times from the background thread when a chunk has returned
ParametersjsonStringRaw json string.
jsonDataDecoded json data object.
binaryDataDecoded binary data chunk which may be null or empty.
Method that can be used to perform a cancellation on a request