nativescript-meteor-client
Nativescript 模块,用于启用 Meteor 的使用
npm i --save nativescript-meteor-client

使用 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'));

...

debugtimeout 是可选的。

示例应用程序可在 nativescript-ng-drawer-seed 找到。