Skip to content

Releases: webitel/mobile-sdk-ios

0.16.1

Choose a tag to compare

@yurizhuk yurizhuk released this 02 Mar 17:15

WebSocket Updates

• Added support for Public Key Pinning. You can now configure a list of trusted SHA-256 hashes in the PortalClientBuilder to enhance network security.

Example usage:

let client = PortalClientBuilder(
    address = "https://demo.webitel.com",
    token = "CLIENT_TOKEN"
)
  .useWebSocket()
  .setPinnedPublicKeys(["base64-encoded-hash..."])
  .logLevel(.debug)
  .build()

0.15.1

Choose a tag to compare

@yurizhuk yurizhuk released this 26 Jan 11:49

✨ New Features

WebSocket Transport Support

• Added optional WebSocket transport for PortalClient.
• To use WebSocket instead of the default gRPC, call .useWebSocket() in the builder.
• Example usage:

let client = PortalClientBuilder(
    address = "https://demo.webitel.com",
    token = "CLIENT_TOKEN"
)
  .useWebSocket()
  .logLevel(.debug)
  .build()

0.14.1

Choose a tag to compare

@yurizhuk yurizhuk released this 11 Jul 16:05

✨ New Features

Message Kind Filtering in History Requests

• Added support for excluding specific message kinds from history results using the new excludeKinds: [String] parameter in RequestParams.
• Example usage:

let params = RequestParams(excludeKinds: ["system", "notification"])
dialog.getHistory(params: params) { result in
    // handle result
}

0.13.1

Choose a tag to compare

@yurizhuk yurizhuk released this 13 Jun 13:20

🔄 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")