better-ws

MITLicense declared in the package manifest.

## 介绍 本项目为基于websocket的二次封装,自定义协议,需与配套的后端一同使用。本工具增加了消息确认机制,通过msg_id与配对的ack进行消息收发的确认,若未收到则一定时间后进行重发。`better-ws`借鉴了axios的拦截器,实现了一系列自己的拦截器,在websocket的通信的生命周期中的恰当位置执行这些拦截器钩子。除此之外还增加了类似http请求的通信方式rpc消息,通过promise封装,发送消息后再`.then`中等待消息结果,或`.catch`中处理发送失败事件。当前版本支持w

85

Security score

0 known advisories in v1.0.8

0-100 score computed by this site from verifiable signals only: known OSV.dev advisories affecting this exact version, how recently it was published, and the repository's OpenSSF Scorecard.advisory penalty −0 · staleness penalty −15

Weekly downloads

Downloads across all versions in the last 7 days, from the official npm downloads API (api.npmjs.org).

Unpacked size

Size of v1.0.8 on disk after npm install extracts the tarball, as reported by the npm registry.

268.9 kB

Dependencies

Direct runtime dependencies declared by v1.0.8. Transitive dependencies are not counted here — use the lockfile audit for the full tree.

0

Last publish

When v1.0.8 was published to the registry. Long gaps can indicate an unmaintained package.

5 years ago

Security advisories

Vulnerabilities affecting v1.0.8 specifically, from OSV.dev — the open database aggregating the GitHub Advisory Database (GHSA) and CVEs. Links open the full advisory.

No known vulnerabilities affect v1.0.8.