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.