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 connection in IE 11 #3069

Closed
huytran0605 opened this issue Oct 2, 2017 · 9 comments
Closed

Socket connection in IE 11 #3069

huytran0605 opened this issue Oct 2, 2017 · 9 comments

Comments

@huytran0605
Copy link

huytran0605 commented Oct 2, 2017

Currently i'm using SocketIo to make chat application.
It doesn't have any problem in Chrome.
But in IE 11, after few minute, i can't use socket to emit event. It seems socket connection is disconnected.

I searched and found any issue about timeout of tcp/socket in IE 11. But still can't found solution.

I only use websocket for socket.io, prevent them use long-polling. The config socket in client side like below:

import socket from 'socket.io-client';

socket('/test', { transports: ['websocket'], upgrade: false });

Server i'm using express and socket redis

import socketio from 'socket.io';
import socketioRedis from 'socket.io-redis';


const ioRedis = socketioRedis('redis://localhost:6379');
const io = socketio(server, {
  adapter: ioRedis,
  transports: ['websocket'],
});
@darrachequesne
Copy link
Member

Could you enable the debug logs (with localStorage.debug='socket*')? Does it happen when you have several tabs open?

@dev-mraj
Copy link

image

this is happening again and again

@darrachequesne
Copy link
Member

It seems the socket is unable to connect. What happens if you enable polling transport? Does it succeed to connect?

Could you please include engine.io's logs with localStorage.debug="socket*,engine*"?

@dev-mraj
Copy link

that is now started working but that particular time everytime it was getting timeout..while in all other browers was working..

may be something server side is fishy

@dev-mraj
Copy link

also let me know how can i get exact reason for disconnect. because we are getting too much random disconnect while internet is working fine, even when client have high speed internet.

how to debug that issue?

@dev-mraj
Copy link

dev-mraj commented Aug 9, 2018

i've to enable polling first for all IE11, polling always workds in IE 11
but not websocket. please suggest solution polling is very slow due to our havy application.

@dev-mraj
Copy link

dev-mraj commented May 8, 2019

any update?

@Shangxq
Copy link

Shangxq commented Sep 7, 2019

image
when I refresh 6 times in IE 11

@darrachequesne
Copy link
Member

Closed by socketio/engine.io-client@ed48b5d, included in socket.io-client@3.1.2.

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

4 participants