kkrpc
    Preparing search index...

    Function serializeMessage

    • Serialize a message with superjson (supports all data types supported by superjson)

      Type Parameters

      • T

      Parameters

      • message: Message<T>

        The message to serialize, an object of any shape

      • options: SerializationOptions = {}

        Serialization options, default to use superjson

      Returns string

      The serialized message