Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.io client connection options have been depcreated #3049

Closed
jokecamp opened this issue Sep 1, 2016 · 2 comments
Closed

socket.io client connection options have been depcreated #3049

jokecamp opened this issue Sep 1, 2016 · 2 comments

Comments

@jokecamp
Copy link

jokecamp commented Sep 1, 2016

The client connection settings max reconnection attempts and max reconnection attempts are no longer used in the socket.io version 1.3.7 that ep uses.

The current code in etherpad-lite/src/static/js/pad.js

  socket = pad.socket = io.connect(url, {
    // Allow deployers to host Etherpad on a non-root path
    'path': exports.baseURL + "socket.io",
    'resource': resource,
    'max reconnection attempts': 3,
    'sync disconnect on unload' : false
  });

Version 1.37 and above use the following settings for client connect:

  • reconnection - whether to reconnect automatically (true)
  • reconnectionDelay - how long to wait before attempting a new
    reconnection (1000)
  • reconnectionDelayMax - maximum amount of time to wait between reconnections (5000). Each attempt increases the reconnection by the amount specified by reconnectionDelay.
  • timeout - connection timeout before a connect_error and connect_timeout events are emitted (20000)

See http://socket.io/docs/client-api/
See http://stackoverflow.com/a/26331082/215502

@jdittrich
Copy link
Contributor

Thanks, thats good to know!

@Gared
Copy link
Member

Gared commented Nov 20, 2016

@jokecamp Thanks for this info. I provided a PR with the appropriate changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants