Skip to content

XHR-Polling only sends the first message in IE8 #65

@saschagehlich

Description

@saschagehlich

Hey,

the following code works fine in Chrome but in IE8 it only sends the first request and all the others are ignored:

var server = { id: 2, host: "v5con.filsh.net", port: "3030" };
var socket = new io.Socket(server.host, {
    port: server.port,
    transports: ['websocket', 'htmlfile', 'xhr-multipart', 'xhr-polling']
});
socket.connect();
socket.on("connect", function() {
    alert("connected!");
    setInterval(function() {
        alert("sent!");
        socket.send("{\"action\": \"myAction\", \"server_id\": 2, \"token\": \"2IIQk\"}");
    }, 1000);
});

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