message: fix: safer subscribe
  Fixes
diff: @@ -125,8 +125,10 @@ function onConnect () {
  this.emit('connect')
  if (this.toSubscribe) {
  - for (let i = 0; i < this.toSubscribe.length; i++) {
  - this.subscribe(this.toSubscribe[i])
  + // don't use toSubscribe here to prevent infinite loops when subscribe fails
  + const topics = [...this.toSubscribe]
  + for (const t of topics) {
  + this.subscribe(t)
  }
  }
  