SignalRKore



Overview
SignalRKore is a Kotlin Multiplatform client library for ASP.NET Core SignalR. It enables real-time communication between clients and servers, allowing server-side code to push content to clients and vice-versa instantly.
Why should you use this library
Installation
SignalRKore is available on Maven Central:
dependencies {
implementation("eu.lepicekmichal.signalrkore:signalrkore:$signalrkoreVersion")
implementation("eu.lepicekmichal.signalrkore:signalrkore-msgpack:$signalrkoreVersion")
}
Quick Example
val connection = HubConnectionBuilder.create("http://localhost:5000/chat")
connection.start()
connection.send("broadcastMessage", "User", "Hello, SignalR!")
connection.on("broadcastMessage", String.serializer(), String.serializer()).collect { (user, message) ->
println("$user says: $message")
}
connection.stop()
How to use
Please see the documentation.
Acknowledgments
All functionality was possible to implement only thanks to AzureSignalR ChatRoomLocal sample.
License
SignalRKore is released under the Apache 2.0 license.
Roadmap