0.1.1 • Published 5 years ago

cmp-socket v0.1.1

Weekly downloads
20
License
-
Repository
-
Last release
5 years ago
属性必填类型默认值描述
urltruestringnonewebsocket服务端接口地址
pingTimeoutfalsenumber1000 * 20每隔15秒发送一次心跳,如果收到任何后端消息定时器将会重置
pongTimeoutfalsenumber1000 * 60ping消息发送之后,10秒内没收到后端消息便会认为连接断开
reconnectTimeoutfalsenumber1000 * 2尝试重连的间隔时间
pingMsgfalsestring"HeartBeat"ping消息值
const options = {
    url: 'ws://xxxx',
    pingTimeout: 1000 * 20,
    pongTimeout: 1000 * 60,
    reconnectTimeout: 1000 * 2,
    pingMsg: "HeartBeat"
}
0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago