Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Initial commit channel sender client js
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuos committed Sep 28, 2020
0 parents commit d473e97
Show file tree
Hide file tree
Showing 16 changed files with 3,029 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea
node_modules
dist
.nyc_output
coverage
.scannerwork
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tsconfig.json
src
.idea
test
.nyc_output
.scannerwork
coverage
Jenkinsfile
sonar-project.properties
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## 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));
```
Loading

0 comments on commit d473e97

Please sign in to comment.