I present something like this:
# client Meteor.call 'attachData', localStorage.getItem 'clientData' Meteor.connection.onReconnect -> Meteor.call 'attachData', localStorage.getItem 'clientData' setTimeout -> Meteor.call 'logData' , 1000
This seems to work, but I'm not familiar with this.connection . Given this setting, will this.connection.data always be? Should I use Meteor.connection or Meteor.default_connection ?
source share