merclijs
Cliente de notificaciones asíncronas para aplicaciones con arquitectura de referencia de Proteccion
Last updated a year ago by dbustamante69 .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install merclijs 
SYNC missed versions from official npm registry.

Mercurio Client JS

Ejemplo de uso básico en Angular

import { MercurioFactory } from 'merclijs';

...

const mercurio = MercurioFactory.getClient({
    apiKey: 'your-privided-api-key',
    log: true,
    authEndpoint: 'https://realhost/mercurio/external/auth',
    cluster: 'us2',
    fragmentsTimeout: 20000 // Completion Timeout for fragmented messages
    token: token // Token real de autenticación a ser enviado al authEndpoint
})

mercurio.startListenSelfChannel(data => callbackDeApplicacion(data), err => fragmentTimeoutCallback(err));

...
//
someRefreshTokenService.setUpdateTokenCallback(newToken => mercurio.updateEventsToken(newToken));

Current Tags

  • 0.3.1                                ...           latest (a year ago)

22 Versions

  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |