redis-pubsub-websocket-server:基于websocket的redis发布订阅协议服务器

时间:2021-02-17 09:58:07
【文件属性】:
文件名称:redis-pubsub-websocket-server:基于websocket的redis发布订阅协议服务器
文件大小:90KB
文件格式:ZIP
更新时间:2021-02-17 09:58:07
redis websocket-server pubsub websocket-redis TypeScript WebSocket服务器上的Redis 介绍 基于websocket的redis发布订阅协议服务器 此服务在localhost上监听2000扩展 软件架构 服务端示例 客户端示例 安装教程 1.需要先安装redis redis默认监听6379扩展 2.安装依赖 yarn install 使用说明 1.编译 yarn build 启动服务器 yarn start 服务路径/ websocket 服务协议基于websocket 发布订阅的协议 客户端发送 发布 “频道”:频道 “消息”:消息 { " type " : " publish " , " channel " : " test " , " message " : " foo " } 订阅 “频道”:频道 { " type " : " subscribe " , " channel " : " test "
【文件预览】:
redis-pubsub-websocket-server-master
----.gitignore(1KB)
---- .gitattributes(180B)
----package.json(2KB)
----src()
--------publish.d.ts(79B)
--------ws-handler.d.ts(103B)
--------listen-socket-map.d.ts(81B)
--------redis-client-publisher.d.ts(103B)
--------redis-client-subscriber.d.ts(103B)
--------unsubscribe.ts(607B)
--------format-error.d.ts(61B)
--------listen-socket-map.ts(80B)
--------on-message.ts(1KB)
--------error-response.d.ts(109B)
--------unsubscribe.d.ts(102B)
--------publish.ts(330B)
--------remove-socket-listener.d.ts(121B)
--------add-socket-listener.d.ts(118B)
--------add-socket-listener.ts(466B)
--------format-error.ts(181B)
--------home.d.ts(294B)
--------redis-client-subscriber.ts(865B)
--------remove-socket-listener.ts(535B)
--------index.ts(672B)
--------error-response.ts(231B)
--------home.ts(294B)
--------ws-handler.ts(2KB)
--------on-close.ts(685B)
--------on-close.d.ts(82B)
--------subscribe.ts(410B)
--------subscribe.d.ts(100B)
--------on-message.d.ts(101B)
--------redis-client-publisher.ts(234B)
--------index.d.ts(11B)
----LICENSE(11KB)
----start.cmd(21B)
----tsconfig.json(810B)
----.github()
--------workflows()
----.prettierrc.json(43B)
----rollup.config.js(2KB)
----README.md(2KB)
----pm2.config.json(280B)
----reload.cmd(26B)
----.gitattributes(177B)
----pnpm-lock.yaml(67KB)
----test()
--------createws.d.ts(320B)
--------index.js(803B)
--------definefreeze.ts(469B)
--------createws.ts(1KB)
--------pubsub.d.ts(808B)
--------index.html(285B)
--------pubsub.ts(7KB)
--------index.d.ts(11B)
----yarn.lock(87KB)

网友评论