var socket = io({ 'reconnection': true, 'reconnectionDelay': 1000, 'reconnectionDelayMax' : 5000, 'reconnectionAttempts': 5 });