collect garbage consumer

How I can understand that client disconnected (unnormal reason lost connection) to close consumer on server side? case track socket.io (for example) connection not a variant coz keepAlive not Infinity :wink: Thx

You should track WebSocket disconnections, you can have some pings with timeouts, all depends on the app and its requirements. I believe this was asked multiple times on the forum already.

1 Like