
implementation("io.ktor:ktor-websockets:3.5.0")Enables real-time, full-duplex communication over a single TCP connection, facilitating message exchange between clients and servers. Supports configuration of frame size, ping intervals, and extensions like Deflate for compression. Allows handling of WebSocket sessions for message exchange and broadcasting to multiple clients.