websocket:storeon通过WebSocket同步事件的模块

时间:2021-05-06 12:15:05
【文件属性】:
文件名称:websocket:storeon通过WebSocket同步事件的模块
文件大小:504KB
文件格式:ZIP
更新时间:2021-05-06 12:15:05
JavaScript Storeon Websocket 用于微型模块,该模块添加了可与WebSocket一起使用的功能。 这意味着现在您可以通过WebSocket发送和接收事件。 它只是401字节的模块(它使用来控制大小)而没有任何依赖性。 import { websocket } from '@storeon/websocket' const url = 'ws://localhost:8080' const store = createStoreon ( [ /* all your modules */ websocket ( url ) ] ) // now all dispatched events will be send to server with address ws://localhost:8080 安装 npm install @storeon/websocket # or
【文件预览】:
websocket-master
----example.gif(319KB)
----yarn.lock(545KB)
----lefthook.yml(280B)
----.npmignore(149B)
----.travis.yml(47B)
----LICENSE(1KB)
----test()
--------index.test.js(7KB)
--------demo()
----README.md(2KB)
----index.d.ts(736B)
----.editorconfig(148B)
----.gitignore(96B)
----index.js(3KB)
----CHANGELOG.md(840B)
----package.json(3KB)

网友评论