https://kotlinlang.org logo
#ktor
Title
# ktor
t

Trey

08/08/2022, 8:59 PM
Can somebody point me to an example project or documentation that shows how to use Ktor's websocket functionality in a project? I've seen the simple example for the client/server chat example, but it doesn't seem to be a best practice when you need to send messages across the web socket from your app. Providing the incoming messages to your app as a flow seems ideal, but the sending pattern is what I'm curious about. Especially if the web socket is considered a "source" that is encapsulated inside of a "repository".
3 Views