Meteor.onConnection not firing after computer wakes from sleep

112 views
Skip to first unread message

David Burles

unread,
May 16, 2014, 4:24:17 AM5/16/14
to meteo...@googlegroups.com
I'm making use of the onConnection callback in the presence package (https://atmospherejs.com/package/presence).

However, there's an issue I've come across whenever the computer wakes from sleep. The onConnection event is never fired again, even though it's possible
to interact with the application as normal. Is this the correct behaviour of the callback or is this a possible bug?

David Burles

unread,
May 27, 2014, 5:56:16 AM5/27/14
to meteo...@googlegroups.com
bump! :)

Avital Oliver

unread,
May 27, 2014, 11:57:13 PM5/27/14
to meteo...@googlegroups.com
It might be a timing issue since reconnect uses an exponential back-off (if this is the case, we could find a way to detect coming out of sleep mode). If you check `Meteor.status()` does it say that you're connected? In general in Meteor when you're disconnected messages are queued until you get reconnected.


bump! :)
--
You received this message because you are subscribed to the Google Groups "meteor-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-core...@googlegroups.com.
To post to this group, send email to meteo...@googlegroups.com.
Visit this group at http://groups.google.com/group/meteor-core.
For more options, visit https://groups.google.com/d/optout.



--
PS. I genuinely *really* like receiving feedback of any kind. Leave it anonymously at http://www.admonymous.com/avital

Gabriel Pugliese

unread,
May 28, 2014, 8:17:22 PM5/28/14
to meteo...@googlegroups.com
@Avital, Question: Does exponential back-off has a limit (like Google App Engine deploys) or it keep increasing?



Gabriel Pugliese
CodersTV.com
@coderstv

David Burles

unread,
May 28, 2014, 9:36:33 PM5/28/14
to meteo...@googlegroups.com
Hey Avital, I'm pretty sure that it says I am connected (I'll confirm for sure.. and get back to you) I can continue to use the application as normal, making writes to the server etc

Avital Oliver

unread,
May 29, 2014, 4:44:16 PM5/29/14
to meteo...@googlegroups.com
Gabriel, yes. The timeout is 5 minutes.
Reply all
Reply to author
Forward
0 new messages