Skip to main content
Version: v0.0.3

Function: verify()

verify(message): VerifyBody | undefined

Convenience accessor: the <Verify> (verification-acknowledgment) body of a message, or undefined.

Parameters

message

ScriptMessage

A parsed ScriptMessage.

Returns

VerifyBody | undefined

The Verify body, or undefined when the message is not a Verify.

Example

verify(parseScript(xml))?.code;