diff --git a/lib/client.js b/lib/client.js index 29f5792..e8b42f7 100644 --- a/lib/client.js +++ b/lib/client.js @@ -44,7 +44,7 @@ export default class Client extends EventTarget { constructor(params) { super(); - this.params = Object.assign(this.params, params); + this.params = { ...this.params, ...params }; this.reconnect(); }