Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Dec 29, 2024
1 parent 0ca97e7 commit 9914f0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function client(options = {}) {
}

const entity = new Client(params);
entity.jid = jid(username, params.domain);
if (username && params.domain) {
entity.jid = jid(username, params.domain);
}

const reconnect = _reconnect({ entity });
const websocket = _websocket({ entity });
Expand Down

0 comments on commit 9914f0b

Please sign in to comment.