Repository navigation
0.13.1
🔄 Key Changes in This Release:
Custom Message Type (kind)
You can now specify a custom message type using the new kind field in Message and Message.options.
• Message.kind: a new read-only property representing the type of the message. Defaults to an empty string.
• Message.options.kind(_:): a fluent setter method to assign a custom type string (e.g. "system_alert", "queue_update").
This allows client applications to extend message classification beyond standard types like "text" or "file", enabling better UI customization and business logic handling.
Example
let options = Message.options()
.withText("User has joined the chat")
.kind("user_joined")