TargetProcess / signalr-client-py

python client proxy for signalr
Other
63 stars 58 forks source link

Add support for reconnection to session when losing session #59

Open quankhuc opened 1 year ago

quankhuc commented 1 year ago

Hi,

I wonder if you can add a function reset_session into the Connection class to reset session when the connection is reset by the host. I have to make edits to the library with this reset_session to reconnect to the server when I get reset by the server.

def reset_session(self, new_session):
    self.__transport = AutoTransport(new_session, self)

I hope you guys can update it soon so that I don't have to download the library and add these 2 lines into the Connection class.

Thank you