Repository navigation
0.20.1
✨ 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()