channels icon indicating copy to clipboard operation
channels copied to clipboard

[feature] Add before close handler for consumers

Open pandafy opened this issue 4 years ago • 2 comments
trafficstars

Add a before close handler which is only triggered when the connection was accepted in the first place. Such handler is useful for housekeeping.

pandafy avatar Dec 09 '20 12:12 pandafy

maybe you can override close() in your consumer and do the housekeeping there before calling parent close() no?

yedpodtrzitko avatar Mar 17 '21 04:03 yedpodtrzitko

I was looking for something that is triggered only when the connection has already been accepted. Like disconnect method is called irrespective of whether connection was established or not.

pandafy avatar May 18 '21 15:05 pandafy