first commit

This commit is contained in:
2023-06-10 15:36:58 +00:00
commit d7c06889a4
793 changed files with 207104 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import { Transport } from "../transport.js";
export declare class WS extends Transport {
private ws;
/**
* WebSocket transport constructor.
*
* @param {Object} opts - connection options
* @protected
*/
constructor(opts: any);
get name(): string;
doOpen(): this;
/**
* Adds event listeners to the socket
*
* @private
*/
private addEventListeners;
write(packets: any): void;
doClose(): void;
/**
* Generates uri for connection.
*
* @private
*/
uri(): string;
/**
* Feature detection for WebSocket.
*
* @return {Boolean} whether this transport is available.
* @private
*/
private check;
}