Autoreconnect

This commit is contained in:
vjrj 2018-03-07 11:44:56 +01:00
parent 4fafaf8ed5
commit 4954b907de
4 changed files with 11 additions and 0 deletions

View file

@ -61,3 +61,4 @@ barbatus:stars-rating
arkham:comments-ui
facts
gadicohen:sitemaps
nspangler:autoreconnect

View file

@ -90,6 +90,7 @@ mys:fonts@0.0.2
natestrauser:publish-performant-counts@0.1.2
npm-bcrypt@0.9.3
npm-mongo@2.2.34
nspangler:autoreconnect@0.0.1
oauth@1.2.0
oauth2@1.2.0
observe-sequence@1.0.16

View file

@ -0,0 +1,8 @@
/* global reconnecToServer */
import { Meteor } from 'meteor/meteor';
Meteor.startup(() => {
// Reconnect Function
reconnectToServer(5000, true);
});

View file

@ -18,6 +18,7 @@ import '/imports/startup/client/meta';
import '/imports/startup/client/ravenLogger';
import '/imports/startup/client/geolocation';
import '/imports/startup/client/piwik-start.js';
import '/imports/startup/client/reconnect.js';
import Reconnect from '../../components/Reconnect/Reconnect';
import Navigation from '../../components/Navigation/Navigation';
import Authenticated from '../../components/Authenticated/Authenticated';