Skip to content

0.16.1

Latest

Choose a tag to compare

@yurizhuk yurizhuk released this 02 Mar 17:15
· 1 commit to main since this release

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()