npm i --save nativescript-meteor-client
- 版本:0.0.6
- GitHub:
- NPM: https://npmjs.net.cn/package/nativescript-meteor-client
- 下载
- 昨天: 0
- 上周: 0
- 上个月: 0
使用 nativescript-websockets 在 NativeScript 中集成 Meteor
$ tns plugin add nativescript-meteor-client
要在初始化您的 Meteor 连接和类之后添加此代码片段,请将其放置在 platformNativeScriptDynamic
导入之后
import {platformNativeScriptDynamic} from "nativescript-angular/platform";
require('nativescript-meteor-client')({
url: 'http://127.0.0.1:3000',
debug: true,
timeout: 5000
}, require('nativescript-websockets'));
...
debug
和 timeout
是可选的。
示例应用程序可在 nativescript-ng-drawer-seed 找到。