Gregivy

Results 18 comments of Gregivy

Hello! It is difficult to say something right now, could you provide your simpleddp version and a source code with such behavior?

Hi @tiagocorreiaitcenter. I think you faced the lost connection behavior. When connection drops or something similar happens Meteor forgets your ddp session, so we have to remove all the data...

@tiagocorreiaitcenter this is the part of the code where *cleaning* is happening https://github.com/Gregivy/simpleddp/blob/master/src/simpleddp.js#L99

Hello @tiagocorreiaitcenter, sorry for the delay. Yeah it works exactly as you said, if you don't wait for the server connection, subscriptions will fail at the same time, then when...

@hems Yes, if the user logs in or out the subscriptions needs to be restarted.

Hello, by default - yes. But you can use `maxTimeout` option (in ms)(https://gregivy.github.io/simpleddp/simpleDDP.html) like this: ``` let opts = { endpoint: "ws://someserver.com/websocket", SocketConstructor: ws, reconnectInterval: 5000, maxTimeout: 15000 }; const...

Thank you @aliogaili, however I am going to add `maxTimeout` for `.connect()` method, it is a good idea.