Skip to content

error event is not triggering #595

@roddc

Description

@roddc

`
client.on("error",console.log); // the error event is not triggering

await client.connectTCP("127.0.0.1", { port: 502, keepAlive:true }).catch(console.log); // only the catch throw
`

Is it because of https://github.com/yaacov/node-modbus-serial/blob/master/ports/tcpport.js#L152 ? the error is not emited to the ModbusRTU.

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