Pysher icon indicating copy to clipboard operation
Pysher copied to clipboard

fix reconnect handler

Open byildiz opened this issue 1 year ago • 0 comments

When auto_sub is true and auth_endpoint is given, pysher tries to resubscribe the channels after a reconnection but since the socket_id is renewed after a reconnection the old auth tokens used to subscribe the private and presence channels are invalid. This commit fixes that problem by first saving the auth variable in the corresponding channel object and using it in reconnection handler.

byildiz avatar Apr 16 '23 15:04 byildiz