Skip to content

Socket connection in IE 11 #3069

Closed
Closed
@huytran0605

Description

@huytran0605

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'],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions