If a connection to the socket is established, but never subscribes to a channel, then disconnects, the internal channel would essentially stick around causing a leak.
This unsubscribe is only called when there's channels to unsubscribe from. With Cable, your users will generally always be subscribed to some channel, so this is a small edge case
|
unsubscribe_from_internal_channel |
If a connection to the socket is established, but never subscribes to a channel, then disconnects, the internal channel would essentially stick around causing a leak.
This unsubscribe is only called when there's channels to unsubscribe from. With Cable, your users will generally always be subscribed to some channel, so this is a small edge case
cable/src/cable/connection.cr
Line 100 in bfdb55d