Options
All
  • Public
  • Public/Protected
  • All
Menu

Payload specifies the type of Msg.data that will be sent and received by the client. The payload affects all client subscribers and publishers. If using mixed types, either create multiple connections, or select Payload.BINARY and perform your own decoding.

Index

Enumeration members

Enumeration members

BINARY

BINARY: = "binary"

Specifies payloads are binary (Buffer)

JSON

JSON: = "json"

Specifies payloads are JSON.

STRING

STRING: = "string"

Specifies a string payload. This is default NatsConnectionOptions.payload setting

Legend

  • Property
  • Method
  • Property
  • Inherited method

Generated using TypeDoc