Skip to content

MLLPServer constructor example in README is outdated #2

Description

@aartaka

Hi and thanks for this library! I'm following the README right now, and MLLPServer creation has a type error:

let mllp_timeout = 600;
let mllp_server = new MLLPServer('0.0.0.0', 2575, mllp_timeout);
// Argument of type 'number' is not assignable to parameter of type '(msg: string) => void'.ts(2345)

Checking the MLLPServer constructor reveals that the third arg is actually a logger function, not timeout.

Can you amend the README and mention that?

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