@oomol/connection-websocket-adapter
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

websocket-adapter

使用 websocket 实现 @oomol-connection 连接,让浏览器(websocket-adapter/client)和 nodejs 环境(websocket-adapter/server)下可以互相通信。

使用

参考 examples/websocket 文件夹

TODO

  • [ ] 实现 structuredClone 逻辑,弥补 JSON.stringify/JSON.parse 不支持循环引用的缺陷

Readme

Keywords

none

Package Sidebar

Install

npm i @oomol/connection-websocket-adapter

Weekly Downloads

1

Version

0.1.1

License

none

Unpacked Size

20.1 kB

Total Files

12

Last publish

Collaborators

  • oomol-studio
  • straybugs
  • sujiaheng
  • alic_zhang
  • yleaf