OptionalreplyCheck?: (An optional function to check if the current reply is the one you were waiting for.
If this is set, sendAndWaitForReply will wait until a reply is received that matches this
condition. If this not set, the first reply is used.
Optionaltimeout?: Readonly<AnyDuration>The duration to wait for a reply message. If this duration is exceeded and a response still hasn't been received, an error is thrown.
Parameters for the
sendAndWaitForReplymethod that gets attached to WebSockets.