Class: BlobWriter

Guacamole.BlobWriter(stream)

new BlobWriter(stream)

A writer which automatically writes to the given output stream with the contents of provided Blob objects.
Parameters:
Name Type Description
stream Guacamole.OutputStream The stream that data will be written to.
Source:

Methods

sendBlob(blob)

Sends the contents of the given blob over the underlying stream.
Parameters:
Name Type Description
blob Blob The blob to send.
Source:

sendEnd()

Signals that no further text will be sent, effectively closing the stream.
Source:

Events

onack

Fired for received data, if acknowledged by the server.
Parameters:
Name Type Description
status Guacamole.Status The status of the operation.
Source:

oncomplete

Fired when a blob passed to sendBlob() has finished being sent.
Parameters:
Name Type Description
blob Blob The blob that was sent.
Source:

onerror

Fired when an error occurs reading a blob passed to sendBlob(). The transfer for the the given blob will cease, but the stream will remain open.
Parameters:
Name Type Description
blob Blob The blob that was being read when the error occurred.
offset Number The offset of the failed read attempt within the blob, in bytes.
error DOMError The error that occurred.
Source:

onprogress

Fired for each successfully-read chunk of data as a blob is being sent via sendBlob().
Parameters:
Name Type Description
blob Blob The blob that is being read.
offset Number The offset of the read that just succeeded.
Source: