【文件属性】:
文件名称:Rocket.Chat.RealTime.API.RxJS:通过RxJS使用Rocket.Chat的实时API方法的抽象
文件大小:107KB
文件格式:ZIP
更新时间:2021-05-17 08:43:43
api chat rxjs chatbot realtime-messaging
Rocket.Chat.RealTime.API.RxJS
使用的方法的
安装
npm install --save rocket.chat.realtime.api.rxjs
对于RxJS v5版本的软件包
npm install --save rocket.chat.realtime.api.rxjs@1.0.0
用法
import { RealTimeAPI } from "rocket.chat.realtime.api.rxjs";
const realTimeAPI = new RealTimeAPI("wss://demo.rocket.chat/websocket");
// Provide, URL to the Rocket.Chat's Realtime API.
realTimeAPI.keepAlive().subscribe();
// Responds
【文件预览】:
Rocket.Chat.RealTime.API.RxJS-master
----.eslintrc(131B)
----.prettierignore(37B)
----src()
--------index.ts(45B)
--------RealTimeAPI.ts(6KB)
----lib()
--------index.d.ts(45B)
--------RealTimeAPI.js(7KB)
--------index.js.map(137B)
--------index.js(205B)
--------RealTimeAPI.js.map(4KB)
--------RealTimeAPI.d.ts(3KB)
----.npmignore(5B)
----.travis.yml(414B)
----tsconfig.json(5KB)
----LICENSE(1KB)
----README.md(5KB)
----.releaserc(287B)
----tests()
--------RealTimeAPI.test.ts(23KB)
----.gitignore(884B)
----package-lock.json(427KB)
----package.json(2KB)