@laplace.live/ws 6.3.4 → 6.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +19 -0
- package/dist/browser.js +2113 -0
- package/dist/common-D1XOmtU3.d.ts +55 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +395 -0
- package/package.json +29 -11
- package/src/browser.ts +0 -20
- package/src/buffer.ts +0 -82
- package/src/common.ts +0 -216
- package/src/extra.ts +0 -33
- package/src/index.test.ts +0 -191
- package/src/index.ts +0 -35
- package/src/inflate/brotli.ts +0 -2285
- package/src/inflate/browser.ts +0 -9
- package/src/inflate/node.ts +0 -11
- package/src/tcp.ts +0 -53
- package/src/ws-client.ts +0 -63
- package/src/ws-node.ts +0 -64
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { L as Live, I as Inflates, a as LiveOptions, K as KeepLive } from './common-D1XOmtU3.js';
|
|
2
|
+
export { D as DataEvent, E as EventEvent } from './common-D1XOmtU3.js';
|
|
3
|
+
|
|
4
|
+
type WSOptions = LiveOptions & {
|
|
5
|
+
address?: string;
|
|
6
|
+
};
|
|
7
|
+
declare class LiveWSBase extends Live {
|
|
8
|
+
ws: WebSocket;
|
|
9
|
+
constructor(inflates: Inflates, roomid: number, { address, ...options }?: WSOptions);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class LiveWS extends LiveWSBase {
|
|
13
|
+
constructor(roomid: number, opts?: WSOptions);
|
|
14
|
+
}
|
|
15
|
+
declare class KeepLiveWS extends KeepLive<typeof LiveWSBase> {
|
|
16
|
+
constructor(roomid: number, opts?: WSOptions);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { KeepLiveWS, LiveOptions, LiveWS, type WSOptions };
|