BBS:      TELESC.NET.BR
Assunto:  exec/broker.js
De:       Deuc¨
Data:     Thu, 7 May 2026 02:03:23 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/a57da0ce23000622e8aec090
Modified Files:
	exec/broker.js
Log Message:
broker.js: fix subscriber registration for existing topics

The Subscription constructor was writing to
topics[i][this.client_id] (a dangling property on the Topic object
with this.client_id being undefined) instead of
topics[i].subscribers[conn.client_id]. This meant subscribers were
never registered in the .subscribers map for topics that already
existed at subscribe time. Retained messages still worked because
they were sent directly from the constructor, but live publishes
never found the subscriber.

Co-Authored-By: Claude Opus 4.6 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]