UNPKG

guacamole-client-typedefs

Version:

Work in progress typescript definitions based on http://guacamole.apache.org/doc/guacamole-common-js/

20 lines (18 loc) 947 B
/// <reference path="./Tunnel.d.ts" /> declare module 'guacamole-client' { /** * Guacamole Tunnel which replays a Guacamole protocol dump from a static file * received via HTTP. Instructions within the file are parsed and handled as * quickly as possible, while the file is being downloaded. * * @constructor * @param url The URL of a Guacamole protocol dump. * @param [crossDomain=false] Whether tunnel requests will be cross-domain, and thus must use CORS * mechanisms and headers. By default, it is assumed that tunnel requests will be made to the same domain. * @param [extraTunnelHeaders={}] Key value pairs containing the header names and values of any additional * headers to be sent in tunnel requests. By default, no extra headers will be added. */ export class StaticHTTPTunnel extends Tunnel { constructor(url: string, crossDomain?: boolean, extraTunnelHeaders?: Record<string, string>); } }