Skip to content

catch "connection refused" #485

@farfromrefug

Description

@farfromrefug

I am wondering how i can catch connection refused when doing

var socket = io.connect('http://domain.com');

I cant find anything that would give me an event when it s happening.

What i see is that there no "onerror" when launching the handshake
https://github.com/LearnBoost/socket.io-client/blob/master/lib/socket.js#L151

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