guacamole-client-typedefs
Version:
Work in progress typescript definitions based on http://guacamole.apache.org/doc/guacamole-common-js/
27 lines (23 loc) • 784 B
TypeScript
/// <reference path="./InputStream.d.ts" />
declare module 'guacamole-client' {
/**
* A reader which automatically handles the given input stream, returning
* strictly received packets as array buffers. Note that this object will
* overwrite any installed event handlers on the given Guacamole.InputStream.
* @param stream The stream that data will be read from.
*/
export class ArrayBufferReader {
constructor(stream: InputStream);
/**
* Fired once for every blob of data received.
* @event
* @param buffer The data packet received.
*/
ondata: null | ((data: ArrayBuffer) => void);
/**
* Fired once this stream is finished and no further data will be written.
* @event
*/
onend: null | (() => void);
}
}