Skip to content

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

@ghost

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.

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