Skip to content

基于Websocket和stompjs封装的集中管理订阅;支持断线重连、自动取消重复订阅

License

Notifications You must be signed in to change notification settings

rwerplus/socket.hj

Repository files navigation

socket.hj

基于Websocket和stompjs封装的集中管理订阅;支持断线重连、自动取消重复订阅

本地开发

yarn build

打包,并将打包文件放在dist文件夹中。使用 rollup 对代码做优化并打包成多种格式(Common JSUMDES Module)。

yarn lint

yarn lint会检查整个项目是否有代码错误、风格错误。

开启 vscode 的 eslint、prettier 插件,在使用 vscode 编码时,就会自动修正风格错误、提示语法错误。

yarn format

yarn format可以自动调整整个项目的代码风格问题。

yarn test

yarn test以监听模式启动 jest,运行单元测试。

开启 vscode 的 jest 插件,会在文件变化时自动运行单元测试。

yarn release

发布 npm 包的命令。

About

基于Websocket和stompjs封装的集中管理订阅;支持断线重连、自动取消重复订阅

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published