Pysher
Pysher copied to clipboard
fix reconnect handler
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.