Skip to content

Commit c7514b9

Browse files
committed
chore: document client.errorResponse
1 parent 4777725 commit c7514b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/client.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,14 @@ class Client extends EventEmitter {
11221122
this._transport.send(buffer.buffer, buffer.offset, receiver);
11231123
}
11241124

1125+
/**
1126+
* Send an errorResponse for a confirmedService.
1127+
* @param {string} receiver ip address of the service initiator
1128+
* @param {enum.ConfirmedServices} service the initiated service the generated the error.
1129+
* @param {number} invokeId the 'invoke-id' from the confirmed service request to which the error is a response.
1130+
* @param {enum.ErrorClasses} errorClass
1131+
* @param {enum.ErrorCode} errorCode
1132+
*/
11251133
errorResponse(receiver, service, invokeId, errorClass, errorCode) {
11261134
const buffer = this._getBuffer();
11271135
baNpdu.encode(buffer, baEnum.NpduControls.PRIORITY_NORMAL_MESSAGE, receiver);

0 commit comments

Comments
 (0)