Skip to content

Using hostip and port of not reachable machine throws TypeError: Cannot call method 'on' of undefined #11

Description

I just tried node-jsonrpc2, works great, until trying to create new client with host and port of an not existing host. Using try catch does not work, error is thrown and application crashes. Is there a way to check if a host is available before trying to connect to the host? Thanks in advance.

Activity

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