zetapush-js
JavaScript SDK for ZetaPush
Last updated 2 years ago by zetapush .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zetapush-js 
SYNC missed versions from official npm registry.

NPM version Document Build Status

ZetaPush JavaScript SDK

Install

From npm

npm install zetapush-js --save

From yarn

yarn add zetapush-js
import { Client, Authentication, services } from 'zetapush-js'

From CDN (unpkg recommended)

<script src="//unpkg.com/zetapush-js/dist/zetapush.min.js"></script>
const { Client, Authentication, services } = ZetaPush

Usage

// Create new ZetaPush Client
const client = new Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  authentication() {
    return Authentication.weak({
      token: null
    })
  }
})
// Create a Stack service
const service = client.createService({
  Type: services.Stack,
  listener: {
    list(message) {
      console.log('list callback', message)
    }
  }
})
// Add connection listener
client.onConnectionEstablished(() => {
  // Call service methods
  service.list({
    stack: '<YOUR-STACK-ID>'
  })
})
// Connect client to ZetaPush BaaS
client.connect()

Any questions?

Current Tags

  • 3.0.0-alpha.2                                ...           alpha (3 years ago)
  • 2.0.0-beta.23                                ...           beta (3 years ago)
  • 3.4.0                                ...           latest (2 years ago)
  • 3.4.0-beta.0                                ...           next (2 years ago)
  • 2.0.0-rc.2                                ...           rc (3 years ago)

64 Versions

  • 3.4.0                                ...           2 years ago
  • 3.4.0-beta.0                                ...           2 years ago
  • 3.4.0-alpha.9                                ...           2 years ago
  • 3.4.0-alpha.8                                ...           2 years ago
  • 3.4.0-alpha.7                                ...           2 years ago
  • 3.4.0-alpha.6                                ...           2 years ago
  • 3.4.0-alpha.5                                ...           2 years ago
  • 3.3.2                                ...           2 years ago
  • 3.4.0-alpha.4                                ...           2 years ago
  • 3.4.0-alpha.3                                ...           2 years ago
  • 3.4.0-alpha.2                                ...           2 years ago
  • 3.3.1                                ...           2 years ago
  • 3.4.0-alpha.1                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.2                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.2.0-alpha.5                                ...           2 years ago
  • 3.2.0-alpha.4                                ...           2 years ago
  • 3.2.0-alpha.3                                ...           2 years ago
  • 3.2.0-alpha.2                                ...           2 years ago
  • 3.2.0-alpha.1                                ...           2 years ago
  • 3.1.3                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           3 years ago
  • 3.1.0-alpha.9                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.1.0-alpha.8                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 3.0.0-alpha.3                                ...           3 years ago
  • 3.0.0-alpha.2                                ...           3 years ago
  • 3.0.0-alpha.1                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 2.0.0-rc.3                                ...           3 years ago
  • 2.0.0-rc.2                                ...           3 years ago
  • 2.0.0-rc.1                                ...           3 years ago
  • 2.0.0-beta.24                                ...           3 years ago
  • 2.0.0-beta.23                                ...           3 years ago
  • 2.0.0-beta.22                                ...           3 years ago
  • 2.0.0-beta.21                                ...           3 years ago
  • 2.0.0-beta.19                                ...           3 years ago
  • 2.0.0-beta.18                                ...           3 years ago
  • 2.0.0-beta.17                                ...           3 years ago
  • 2.0.0-beta.16                                ...           3 years ago
  • 2.0.0-beta.15                                ...           3 years ago
  • 2.0.0-beta.14                                ...           3 years ago
  • 2.0.0-beta.12                                ...           3 years ago
  • 2.0.0-beta.11                                ...           3 years ago
  • 2.0.0-beta.10                                ...           3 years ago
  • 2.0.0-beta.9                                ...           3 years ago
  • 2.0.0-beta.8                                ...           3 years ago
  • 2.0.0-beta.7                                ...           3 years ago
  • 2.0.0-beta.6                                ...           3 years ago
  • 2.0.0-beta.5                                ...           3 years ago
  • 2.0.0-beta.4                                ...           3 years ago
  • 2.0.0-beta.3                                ...           3 years ago
  • 2.0.0-beta.2                                ...           3 years ago
  • 2.0.0-beta.1                                ...           3 years ago
  • 2.0.0-beta.0                                ...           3 years ago
  • 2.0.0-alpha.6                                ...           3 years ago
  • 2.0.0-alpha.5                                ...           3 years ago
  • 2.0.0-alpha.4                                ...           3 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 65
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)

Copyright 2014 - 2017 © taobao.org |