Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
?.worker
}
+ /**
+ * Checks if the worker id sent in the received message from a worker is valid.
+ *
+ * @param message - The received message.
+ * @throws {@link https://nodejs.org/api/errors.html#class-error} If the worker id is invalid.
+ */
private checkMessageWorkerId (message: MessageValue<Response>): void {
if (
message.workerId != null &&
/**
* Worker message listener.
*
- * @param message - Message received.
+ * @param message - The received message.
*/
protected messageListener (message: MessageValue<Data, Data>): void {
if (message.workerId === this.id) {