Commit 386b8c3
committed
fix(gateway): send online count directly to connecting socket
The online count was always 0 because VISITOR_ONLINE events relied
solely on Redis emitter broadcasts, which may not reach clients if
the emitter-adapter chain has any issues. Now also send the count
directly via socket.emit on connection to guarantee delivery.1 parent 7fba2fd commit 386b8c3
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
208 | 219 | | |
209 | 220 | | |
210 | 221 | | |
| |||
0 commit comments