1 | import { Transport } from "../transport.js";
|
2 | import type { Packet, RawData } from "engine.io-parser";
|
3 | export declare abstract class BaseWS extends Transport {
|
4 | protected ws: any;
|
5 | get name(): string;
|
6 | doOpen(): this;
|
7 | abstract createSocket(uri: string, protocols: string | string[] | undefined, opts: Record<string, any>): any;
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 | private addEventListeners;
|
14 | write(packets: any): void;
|
15 | abstract doWrite(packet: Packet, data: RawData): any;
|
16 | doClose(): void;
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 | private uri;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare class WS extends BaseWS {
|
33 | createSocket(uri: string, protocols: string | string[] | undefined, opts: Record<string, any>): any;
|
34 | doWrite(_packet: Packet, data: RawData): void;
|
35 | }
|