Skip to content

0.20.1

Choose a tag to compare

@yurizhuk yurizhuk released this 22 Dec 08:56
· 7 commits to main since this release

✨ New Features

WebSocket Transport Support

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

val client = PortalClient.Builder(
    application = application,
    address = "https://demo.webitel.com",
    token = "CLIENT_TOKEN"
)
  .deviceId("test-device-id")
  .transport(Transport.WEBSOCKET) // or .useWebSocket()
  .logLevel(LogLevel.DEBUG)
  .build()