Class: ArrayBufferWriter

Guacamole.ArrayBufferWriter(streamnon-null)

new ArrayBufferWriter(streamnon-null)

A writer which automatically writes to the given output stream with arbitrary binary data, supplied as ArrayBuffers.
Parameters:
Name Type Description
stream Guacamole.OutputStream The stream that data will be written to.
Source:

Members

(static, constant, non-null) DEFAULT_BLOB_LENGTH :number

The default maximum blob length for new Guacamole.ArrayBufferWriter instances.
Type:
  • number
Source:

(non-null) blobLength :number

The maximum length of any blob sent by this Guacamole.ArrayBufferWriter, in bytes. Data sent via sendData() which exceeds this length will be split into multiple blobs. As the Guacamole protocol limits the maximum size of any instruction or instruction element to 8192 bytes, and the contents of blobs will be base64-encoded, this value should only be increased with extreme caution.
Type:
  • number
Default Value:
Source:

Methods

sendData(datanon-null)

Sends the given data.
Parameters:
Name Type Description
data ArrayBuffer | TypedArray The data 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: