The LiSA Player uses to parse incoming messages. For details on the ZodIssue type, refer to the Zod documentation.
interface MessageError {
/** The distinct human-readable error code. */
code: string;
/** A message describing the error that occurred. */
message: string;
/** A status code, typically 400 to indicate a bad request. */
statusCode: number;
/** The payload of the original message that the player failed to parse. */
input: unknown;
/** A list, providing detailed information on the issues identified. */
issues: ZodIssue[];
/**
* The unique identifier of the message that the player failed to parse,
* if provided.
*/
messageId?: string;
}
Examples
Pass User Context message, that misses the id property.