@glokon/guacamole-common-js
Version:
Guacamole common js with typescript type definitions
17 lines (15 loc) • 754 B
TypeScript
import { Tunnel } from './Tunnel';
/**
* Guacamole Tunnel implemented over HTTP via XMLHttpRequest.
*/
export class HTTPTunnel extends Tunnel {
/**
* @param tunnelURL The URL of the HTTP tunneling service.
* @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.
*/
constructor(tunnelURL: string, crossDomain?: boolean, extraTunnelHeaders?: Record<string, string>);
}