At the moment when I am disconnected from the server and I call a method I get an error but the method call is queued and executed as soon as a connection to the server is re-established.
But after reconnecting the user isn't logged in any more. Therefore all the method calls will return an error that the user needs to be logged in.
I tried to use the token to resume the session in ddpConnection.OnConnected but this is too late and the user will be logged in after all the queued messages have been executed.
Is there any way to solve this problem?