Emitted when the client has had an error, such as:
Parameters:
error
: Error that was thrownEmitted when the client has connected to the target.
Parameters:
connection
: Active connection informationEmitted when the client has lost the connection to the target.
Parameters:
socketFailure
: True if connection was lost due to a socket/tcp problemEmitted when the client has disconnected from the target.
Parameters:
isReconnecting
: True if disconnect happened during reconnectingEmitted when the target PLC runtime state has changed
Parameters:
state
: New PLC runtime statepreviousState
: Previous PLC runtime state (if known)Emitted when the target PLC runtime symbol version has changed.
Parameters:
version
: New PLC runtime symbol versionpreviousVersion
: Previous PLC runtime symbol version (if known)Emitted when the client has reconnected to the target after a disconnection.
Parameters:
allSubscriptionsRestored
: True if all subscriptions were restored successfullyunrestoredSubscriptions
: Array of subscription paths that failed to be restoredEmitted when the AMS router state has changed.
Parameters:
state
: New AMS router statepreviousState
: Previous AMS router state (if known)Emitted when the target TwinCAT system state has changed.
Parameters:
state
: New TwinCAT system statepreviousState
: Previous TwinCAT system state (if known)Emitted when the client encounters a non-critical abnormal event, such as:
As default, the client writes these warnings to the console unless settings.hideConsoleWarnings
is set.
The setting does not disable the warning
event.
Parameters:
message
: Warning message
Events for the client, for example
client.on('connect', ...)