quickvo-player 0.2.0 → 0.2.1

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/P2P.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare let aa: WebSocket;
@@ -0,0 +1,19 @@
1
+ type ResolveInfo = Map<string, {
2
+ resolve: Function;
3
+ timer: number;
4
+ }>;
5
+ export declare class PrResolves {
6
+ resolvesMap: Map<string, ResolveInfo>;
7
+ index: number;
8
+ constructor();
9
+ /**
10
+ *
11
+ * @param eventKey 唯一key
12
+ * @param checkFun 检测函数
13
+ * @param timeout 超时时间 ms
14
+ * @returns
15
+ */
16
+ add: (eventKey: string, checkFun?: Function, timeout?: number) => Promise<unknown>;
17
+ emit: (eventKey: string) => Promise<void>;
18
+ }
19
+ export {};
@@ -9,6 +9,7 @@ interface Room {
9
9
  }
10
10
  interface QuickVoPlayerOption {
11
11
  debug?: boolean;
12
+ ws?: string;
12
13
  }
13
14
  export declare class QuickVoPlayer {
14
15
  option: QuickVoPlayerOption;