Home Manual Reference Source

3.3.0 (2017-11-02)

Fix

Features

3.2.2 (2017-11-02)

Fix issus on previously published version

3.2.1 (2017-11-02)

Features

3.2.0 (2017-10-06)

Features

const { Authentication, Client } = require('zetapush-js')
// Create new ZetaPush Client
const client = new Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  authentication: () => Authentication.simple({
    login: '<YOUR-USER-LOGIN>',
    password: '<YOUR-USER-PASSWORD>'
  })
})
// Add connection establised listener
client.onConnectionEstablished(() => {
  console.log('onConnectionEstablished')
  const profile = client.getUserInfo()
  console.log('Your profile', profile)
})
client.connect()
const { WeakClient } = require('zetapush-js')
const NodeJSTransports = require('zetapush-cometd/lib/node/Transports')
// Create new ZetaPush Client
const client = new WeakClient({
  transports: NodeJSTransports,
  sandboxId: '<YOUR-SANDBOX-ID>'
})
// Add connection establised listener
client.onConnectionEstablished(() => {
  console.log('onConnectionEstablished')
})
client.connect()

Changes

3.1.3 (2017-04-13)

Fix

3.1.2 (2017-04-13)

Features

3.1.1 (2017-04-10)

Features

3.1.0 (2017-02-21)

Features

Fixes

3.1.0-alpha.9 (2017-01-18)

3.0.1 (2017-01-18)

Fixes

3.1.0-alpha.8 (2017-01-09)

3.1.0-alpha.7 (2017-01-09)

3.1.0-alpha.6 (2017-01-02)

3.1.0-alpha.5 (2017-01-02)

3.1.0-alpha.4 (2017-01-02)

3.1.0-alpha.3 (2017-01-02)

3.1.0-alpha.2 (2016-11-14)

3.1.0-alpha.1 (2016-11-04)

Features

3.0.0 (2016-10-24)

Changes

Fixes

Features

3.0.0-alpha.3 (2016-09-16)

Major API modification

BREAKING CHANGES

Before

// Create new service
const service = new client.createService({
  type: ZetaPush.services.Stack,
  listener: {
    list(message) {
      console.log('on list', message)
    }
  }
})

After

// Create new service
const service = new client.createService({
  Type: ZetaPush.services.Stack,
  listener: {
    list(message) {
      console.log('on list', message)
    }
  }
})

3.0.0-alpha.2 (2016-09-06)

Fix

3.0.0-alpha.1 (2016-08-19)

Major API modification

BREAKING CHANGES

Before

// Create new ZetaPush Client
const client = new ZetaPush.Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  credentials() {
    return ZetaPush.AuthentFactory.createWeakHandshake({
      token: null
    })
  }
})

After

// Create new ZetaPush Client
const client = new ZetaPush.Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  authentication() {
    return ZetaPush.Authentication.weak({
      token: null
    })
  }
})

Features

2.0.1 (2016-07-26)

Fixes

2.0.0 (2016-07-25)

:tada: After a complete refactoring, ZetaPush 2.0 is production ready

2.0.0-rc.3 (2016-07-15)

Fixes

2.0.0-rc.2 (2016-07-13)

Features

const client = new ZetaPush.WeakClient({
  sandboxId: 'Y1k3xBDc',
  transports: [ZetaPush.TransportTypes.LONG_POLLING]
})

2.0.0-rc.1 (2016-07-12)

Major API modification

BREAKING CHANGES

Before

// Create new ZetaPush Client
const client = new ZetaPush.Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  credentials() {
    return ZetaPush.AuthentFactory.createWeakHandshake({
      token: null
    })
  }
})

After

// Create new ZetaPush Client
const client = new ZetaPush.Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  credentials() {
    return ZetaPush.Authentication.weak({
      token: null
    })
  }
})

2.0.0-beta.23 (2016-07-08)

Fixes

2.0.0-beta.22 (2016-07-07)

Changes

2.0.0-beta.21 (2016-07-05)

Fixes

2.0.0-beta.20 (2016-07-05)

Changes

2.0.0-beta.19 (2016-07-04)

Changes

2.0.0-beta.18 (2016-06-21)

Major API modification

BREAKING CHANGES

Before

// Create new ZetaPush Client
const client = new ZetaPush.Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  handshakeStrategy() {
    return ZetaPush.AuthentFactory.createWeakHandshake({
      token: null
    })
  }
})

After

// Create new ZetaPush Client
const client = new ZetaPush.Client({
  sandboxId: '<YOUR-SANDBOX-ID>',
  credentials() {
    return ZetaPush.AuthentFactory.createWeakHandshake({
      token: null
    })
  }
})

2.0.0-beta.17 (2016-06-20)

Major API simplification

BREAKING CHANGES

Before

const service = client.createService({
  type: ZetaPush.services.Stack,
  listener: {
    list(message) {
      console.log('on list stack', message.data)
    }
  }
})
service.publisher.list({
  stack: '<STACK-ID>'
})

After

const service = client.createService({
  type: ZetaPush.services.Stack,
  listener: {
    list(message) {
      console.log('on list stack', message.data)
    }
  }
})
service.list({
  stack: '<STACK-ID>'
})

2.0.0-beta.16 (2016-06-06)

Major API simplification

BREAKING CHANGES

Before

var service = client.createServicePublisherSubscriber({
  definition: ZetaPush.definitions.StackPublisherDefinition,
    list: function (message) {
      console.log('on list stack', message.data)
    }
  }
})
service.publisher.list({
  stack: '<STACK-ID>'
})

After

const service = client.createService({
  type: ZetaPush.services.Stack,
  listener: {
    list(message) {
      console.log('on list stack', message.data)
    }
  }
})
service.publisher.list({
  stack: '<STACK-ID>'
})

2.0.0-beta.15 (2016-06-03)

Changes

2.0.0-beta.14 (2016-06-01)

Fix

2.0.0-beta.13 (2016-06-01)

Fix

2.0.0-beta.12 (2016-06-01)

Changes

2.0.0-beta.11 (2016-06-01)

Changes

2.0.0-beta.10 (2016-06-01)

Changes

2.0.0-beta.9

Changes

Fix

2.0.0-beta.8 (2016-05-23)

Changes

2.0.0-beta.7 (2016-05-23)

Fix

2.0.0-beta.6 (2016-05-20)

Changes

2.0.0-beta.4 (2016-05-20)

Changes

2.0.0-beta.3 (2016-05-17)

Changes

2.0.0-beta.2 (2016-05-09)

Fix

2.0.0-beta.1 (2016-05-09)

Fix

2.0.0-beta.0 (2016-05-09)

Changes

2.0.0-alpha.6 (2016-05-02)

Changes

2.0.0-alpha.5 (2016-04-29)

Changes

2.0.0-alpha.4 (2016-04-28)

Fixes

2.0.0-alpha.3 (2016-04-28)

Features

2.0.0-alpha.2 (2016-04-25)

Features

2.0.0-alpha.1 (2016-04-05)

Features

BREAKING CHANGES