Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

var socket = io(); reconnect

var socket = io({
  'reconnection': true,
  'reconnectionDelay': 1000,
  'reconnectionDelayMax' : 5000,
  'reconnectionAttempts': 5
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #var #socket #reconnect
ADD COMMENT
Topic
Name
1+9 =