Skip to content

Commit

Permalink
Adjust comment for correlationId
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj committed Oct 19, 2023
1 parent 57bc54e commit 5201fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SignalingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class SignalingClient extends EventEmitter {
}

/**
* Throws an error if the recipient client id is null and the current role is 'MASTER' as all messages sent as 'MASTER' should have a recipient client id.
* Throws an error if the correlationId does not fit the constraints mentioned in {@link https://docs.aws.amazon.com/kinesisvideostreams-webrtc-dg/latest/devguide/kvswebrtc-websocket-apis4.html the documentation}.
*/
private validateCorrelationId(correlationId?: string): void {
if (correlationId && !/^[a-zA-Z0-9_.-]{1,256}$/.test(correlationId)) {
Expand Down

0 comments on commit 5201fcf

Please sign in to comment.