Constructs a new ClientPayload.
Optional
properties:
IClientPayload
Properties to set
ClientPayload connectAttemptCount.
ClientPayload connectReason.
ClientPayload connectType.
ClientPayload device.
Optional
deviceClientPayload devicePairingData.
Optional
dnsClientPayload dnsSource.
ClientPayload fbAppId.
ClientPayload fbCat.
ClientPayload fbDeviceId.
ClientPayload fbUserAgent.
Optional
interopClientPayload interopData.
ClientPayload iosAppExtension.
ClientPayload lc.
ClientPayload memClass.
ClientPayload oc.
ClientPayload paddingBytes.
ClientPayload passive.
ClientPayload product.
ClientPayload pull.
ClientPayload pushName.
ClientPayload sessionId.
ClientPayload shards.
ClientPayload shortConnect.
Optional
userClientPayload userAgent.
ClientPayload username.
Optional
webClientPayload webInfo.
ClientPayload yearClass.
Static
create
Creates a new ClientPayload instance using the specified properties.
Optional
properties:
IClientPayload
Properties to set
ClientPayload instance
Static
decode
Decodes a ClientPayload message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
ClientPayload
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a ClientPayload message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
ClientPayload
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified ClientPayload message. Does not implicitly verify messages.
ClientPayload message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified ClientPayload message, length delimited. Does not implicitly verify messages.
ClientPayload message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates a ClientPayload message from a plain object. Also converts values to their respective internal types.
Plain object
ClientPayload
Static
toCreates a plain object from a ClientPayload message. Also converts values to other types if specified.
ClientPayload
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a ClientPayload.