This is a repository for the tutorial on how to use Ktor and Kotlinx.Serialization to create a simple web server and client application. In this part, we will learn how to use WebSockets to enable bidirectional communication between the server and the client.
- Run the
main()
function fromUserServer.kt
to start the server - To run the client for request, start the
main()
function fromUserClient.kt
- To run the WebSocket client, start the
main()
function fromWebSocketClient.kt