knight-web 2.1.0 → 2.1.2

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.
@@ -35,16 +35,6 @@ export declare namespace NetworkUtility {
35
35
  class WebSocketNetWork {
36
36
  /** WebSocket套接字 */
37
37
  private _websocket;
38
- /** 心跳计数器 */
39
- private _heartbeatCounter;
40
- /** 心跳间隔 */
41
- private _heartbeatInterval;
42
- /** 心跳响应计数器 */
43
- private _heartbeatResponseCounter;
44
- /** 心跳超时次数 */
45
- private _heartbeatTimeoutCount;
46
- /** 心跳定时器 */
47
- private _heartbeatTimer;
48
38
  /** 打开回调事件 */
49
39
  Evt_OnOpen: (_ws: WebSocketNetWork, _event?: Event) => void;
50
40
  /** 关闭回调事件 */
@@ -53,20 +43,16 @@ export declare namespace NetworkUtility {
53
43
  Evt_OnError: (_ws: WebSocketNetWork, _event?: Event) => void;
54
44
  /** 接收回调事件 */
55
45
  Evt_OnReceive: (_ws: WebSocketNetWork, _event?: MessageEvent<any>) => void;
56
- /** 心跳超时回调事件 */
57
- Evt_OnHeartbeatTimeout: () => void;
58
46
  /** 构造函数 */
59
47
  constructor();
60
48
  /** 开启连接 */
61
49
  OnConnect(_url: string): void;
62
50
  /** 客户端断开连接 */
63
51
  OnDisConnect(): void;
64
- /** 启动心跳 */
65
- private OnStartHeartbeat;
66
52
  /** 客户端打开连接 */
67
53
  private OnOpen;
68
54
  /** 客户端断开连接 */
69
- OnClose(_event?: CloseEvent): void;
55
+ private OnClose;
70
56
  /** 客户端报错 */
71
57
  private OnError;
72
58
  /** 发送消息 */
package/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from './frame';
2
- import './test';