@glokon/guacamole-common-js
Version:
Guacamole common js with typescript type definitions
28 lines (24 loc) • 727 B
TypeScript
import { InputStream } from './InputStream';
/**
* A reader which automatically handles the given input stream, returning
* strictly text data. Note that this object will overwrite any installed event
* handlers on the given Guacamole.InputStream.
*/
export class StringReader {
/**
* @param stream The stream that data will be read from.
*/
constructor(stream: InputStream);
/**
* Fired once for every blob of text data received.
*
* @event
* @param text The data packet received.
*/
ontext: null | ((text: string) => void);
/**
* Fired once this stream is finished and no further data will be written.
* @event
*/
onend: null | (() => void);
}