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

ayodele

03/14/2023, 8:45 AM
Hello. Is it optimal to save `DefaultWebsocketSession`'s as List in memory on the Ktor server?? Like in the chat example
j

Jonas TM

03/14/2023, 12:26 PM
Question is what would be an alternative solution? If you want to send messages to multiple connections you have to keep track of them somehow. They are in memory anyway as long as they are opened since Ktor internally also has to keep track of open connections somehow.
👍 1
6 Views