How to use the stanza.createClient function in stanza

To help you get started, we’ve selected a few stanza examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iXyles / fortnite-basic-api / src / Communciator / index.js View on Github external
setup() {
    this.stream = createClient({
      server: Endpoints.EPIC_PROD_ENV,
      transports: {
        websocket: `wss://${Endpoints.XMPP_SERVER}`,
        bosh: false,
      },

      credentials: {
        jid: `${this.client.authenticator.accountId}@${Endpoints.EPIC_PROD_ENV}`,
        host: Endpoints.EPIC_PROD_ENV,
        username: this.client.authenticator.accountId,
        password: this.client.authenticator.accessToken,
      },

      resource: this.resource, // to make it seen online INSIDE the game.
    });

stanza

Modern XMPP in the browser, with a JSON API

MIT
Latest version published 3 months ago

Package Health Score

72 / 100
Full package analysis