项目作者: ntrp

项目描述 :
Meteor integration in NativeScript using nativescript-websockets
高级语言: TypeScript
项目地址: git://github.com/ntrp/nativescript-meteor-client.git
创建时间: 2016-12-03T20:15:04Z
项目社区:https://github.com/ntrp/nativescript-meteor-client

开源协议:MIT License

下载


Meteor integration in NativeScript using nativescript-websockets

  1. $ tns plugin add nativescript-meteor-client

To init your Meteor connection and classes add this snippet just after the platformNativeScriptDynamic import:

  1. import {platformNativeScriptDynamic} from "nativescript-angular/platform";
  2. require('nativescript-meteor-client')({
  3. url: 'http://127.0.0.1:3000',
  4. debug: true,
  5. timeout: 5000
  6. }, require('nativescript-websockets'));
  7. ...

debug and timeout are optional.

An example application can be fount at nativescript-ng-drawer-seed.