Skip to content

Commit

Permalink
feat(dev): add random characters in resource
Browse files Browse the repository at this point in the history
Close #93
  • Loading branch information
nioc committed Feb 10, 2023
1 parent 5b0c177 commit be3c98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/XmppClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class XmppClient {
this.xmpp = client({
service: config.service || 'ws://localhost:5280/xmpp-websocket',
domain: config.domain || 'localhost',
resource: config.resource || 'Web XMPP',
resource: config.resource + (import.meta.env.DEV ? nanoid(5) : '') || 'Web XMPP',
username: config.jid,
password: config.password,
})
Expand Down

0 comments on commit be3c98a

Please sign in to comment.