Constructs a new EmbeddedMessage.
Optional
properties:
IEmbeddedMessage
Properties to set
Optional
message
EmbeddedMessage message.
Optional
stanzaEmbeddedMessage stanzaId.
Static
create
Creates a new EmbeddedMessage instance using the specified properties.
Optional
properties:
IEmbeddedMessage
Properties to set
EmbeddedMessage instance
Static
decode
Decodes an EmbeddedMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
EmbeddedMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes an EmbeddedMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
EmbeddedMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified EmbeddedMessage message. Does not implicitly verify messages.
EmbeddedMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified EmbeddedMessage message, length delimited. Does not implicitly verify messages.
EmbeddedMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates an EmbeddedMessage message from a plain object. Also converts values to their respective internal types.
Plain object
EmbeddedMessage
Static
getStatic
toCreates a plain object from an EmbeddedMessage message. Also converts values to other types if specified.
EmbeddedMessage
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents an EmbeddedMessage.