Function newObjectData

  • Creates a new RSTaggedData object with the message serialized to JSON and encoded as UTF-8

    Parameters

    • tag: string

      the message tag

    • message: any

      the message to encode

    Returns RSTaggedData