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:
- Customize the firewall configuration
Open the port 8080 for the server.
sudo ufw allow 8080
- Run the server
cd ChatServer
./gradlew :server:run
- Run the application
cd ChatClient
./gradlew :client:run
-
Input the url of the server, for example:
ws://localhost:8080/chat
-
Rename your name
Send the command /name your_name
to the server, for example: /name Shetty
.
Server | Android | Desktop |
---|---|---|
Server is Running (http://0.0.0.0:8080) | Chat with Desktop client | Chat with Android client |
- Ktor
- Kotlinx Serialization
- Ktor
- ViewModel Compose
- Koin
- Kotlinx Serialization
MIT