Socket.io: Socket io sends a lot of requests

Created on 27 Aug 2017  路  5Comments  路  Source: socketio/socket.io

You want to:

  • [x] request a feature
  • [x] report a bug

Current behaviour

Socket io sends lots of request

Steps to reproduce (if the current behaviour is a bug)

  1. clone https://github.com/socketio/chat-example
  2. change socket io version in package json to the latest
  3. npm install

Expected behaviour

Socket io doesn't send a lot of requests like in version 1.7.3

Setup

  • OS: Ubuntu 16.04
  • browser: Chrome latest
  • socket.io version: 2.0.3 (1.7.3 works well)

All 5 comments

i had the same problem

I've fixed that but don't remember what i did

I think the chat example rely on an old version (1.2.0) of the socket.io-client (https://github.com/socketio/chat-example/blob/master/index.html#L22), which is not able to connect properly with newer versions of the server. In fact, it seems to happen with every version below 1.4.x. Could you please update your client version?

Yes, i remember. I have installed old socket.io version

@xahon thanks for the detail! I think this issue can be closed, please reopen if needed.

Was this page helpful?
0 / 5 - 0 ratings