Skip to content

Commit c8f47f0

Browse files
committed
chore: document client.errorResponse
1 parent 31f0c91 commit c8f47f0

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
@@ -1169,6 +1169,14 @@ class Client extends EventEmitter {
11691169
this._transport.send(buffer.buffer, buffer.offset, receiver);
11701170
}
11711171

1172+
/**
1173+
* Send an errorResponse for a confirmedService.
1174+
* @param {string} receiver ip address of the service initiator
1175+
* @param {enum.ConfirmedServices} service the initiated service the generated the error.
1176+
* @param {number} invokeId the 'invoke-id' from the confirmed service request to which the error is a response.
1177+
* @param {enum.ErrorClasses} errorClass
1178+
* @param {enum.ErrorCode} errorCode
1179+
*/
11721180
errorResponse(receiver, service, invokeId, errorClass, errorCode) {
11731181
const buffer = this._getBuffer();
11741182
baNpdu.encode(buffer, baEnum.NpduControlPriority.NORMAL_MESSAGE, receiver);

0 commit comments

Comments
 (0)