Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.37 KB

README.md

File metadata and controls

67 lines (42 loc) · 1.37 KB

KMP-Chat

KMP-Chat is a tool for chatting, based on KMP(Kotlin Multiplatform) technology, both client and server are written in Kotlin.

KMP-Chat contains two parts:

  • Server: WebSocket server
  • Client: Desktop/Android multiplatform application.

Usage

Server

  1. Customize the firewall configuration

Open the port 8080 for the server.

sudo ufw allow 8080
  1. Run the server
cd ChatServer
./gradlew :server:run

Client (Desktop)

  1. Run the application
cd ChatClient
./gradlew :client:run
  1. Input the url of the server, for example: ws://localhost:8080/chat

  2. Rename your name

Send the command /name your_name to the server, for example: /name Shetty.

Screenshots

Server Android Desktop
Server Android Desktop
Server is Running (http://0.0.0.0:8080) Chat with Desktop client Chat with Android client

Dependencies

Server

  • Ktor
  • Kotlinx Serialization

Client

  • Ktor
  • ViewModel Compose
  • Koin
  • Kotlinx Serialization

License

MIT