Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 687 Bytes

File metadata and controls

8 lines (8 loc) · 687 Bytes

How To Use kotlinx.serialization with Ktor and Kotlin?

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.

Instructions

  1. Run the main() function from UserServer.kt to start the server
  2. To run the client for request, start the main() function from UserClient.kt
  3. To run the WebSocket client, start the main() function from WebSocketClient.kt