Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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.
});