Skip to content

reconnecting the console listener if node restarts #5

Open

Description

@Marak

what do you think about adding something to the long poll that will allow it to automatically reconnect if the node instance goes down and then comes back up.

i'm constantly having to reload the entire debugger page on node restart to re-establish the connection.

Activity

  1. Connorhd commented on Jan 16, 2010

    @Connorhd
    Owner

    Sounds like a good idea, I probably won't have time to implement it for a little while though.

  2. Marak commented on Jan 16, 2010

    @Marak
    Author

    i might have some time next week to play with this.

    i think all you need is an error listener on the jQuery ajax call that will restart the call (after a short delay) if it dies for any reason. the key here is the delay as you don't want the browser to send out too many reconnect attempts.

  3. Connorhd commented on Jan 17, 2010

    @Connorhd
    Owner

    It would be worth displaying a notice in the console that the connection was lost and re-established.

  4. Marak commented on Jan 17, 2010

    @Marak
    Author

    /agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions