This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit channel sender client js
- Loading branch information
0 parents
commit d473e97
Showing
16 changed files
with
3,029 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.idea | ||
node_modules | ||
dist | ||
.nyc_output | ||
coverage | ||
.scannerwork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
``` |
Oops, something went wrong.