You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
814 B
TypeScript
44 lines
814 B
TypeScript
import { Transport } from "../transport";
|
|
export declare class WebSocket extends Transport {
|
|
protected perMessageDeflate: any;
|
|
private socket;
|
|
/**
|
|
* WebSocket transport
|
|
*
|
|
* @param req
|
|
* @api public
|
|
*/
|
|
constructor(req: any);
|
|
/**
|
|
* Transport name
|
|
*
|
|
* @api public
|
|
*/
|
|
get name(): string;
|
|
/**
|
|
* Advertise upgrade support.
|
|
*
|
|
* @api public
|
|
*/
|
|
get handlesUpgrades(): boolean;
|
|
/**
|
|
* Advertise framing support.
|
|
*
|
|
* @api public
|
|
*/
|
|
get supportsFraming(): boolean;
|
|
/**
|
|
* Writes a packet payload.
|
|
*
|
|
* @param {Array} packets
|
|
* @api private
|
|
*/
|
|
send(packets: any): void;
|
|
/**
|
|
* Closes the transport.
|
|
*
|
|
* @api private
|
|
*/
|
|
doClose(fn: any): void;
|
|
}
|