Skip to main content
Version: v0.0.3

Interface: SecurityWarning

Frozen payload of the 'securityWarning' event, emitted by both MllpClient (MLLP_TLS_VERIFY_DISABLED) and MllpServer (MLLP_BIND_ALL_INTERFACES).

Never carries payload bytes or PHI, only routing metadata (host/port) and a fixed, static message string.

Example

client.on('securityWarning', (w: SecurityWarning) => {
logger.warn({ code: w.code, host: w.host, port: w.port });
});

Properties

code

readonly code: SecurityWarningCode

The stable security-warning code.


host

readonly host: string

Host associated with the warning (the target host for clients; the bind host for servers).


message

readonly message: string

Fixed, human-readable description. Never contains payload bytes or PHI.


port

readonly port: number

Port associated with the warning.


timestamp

readonly timestamp: Date

Wall-clock time at point of emission.