This is a sample showing a list of messages from mock server and update their names according to messages received from a WebSocket
connection.
You can find unit tests in /app/src/test
directory
WebSocketSample attempts to use the latest libraries and tools:
- Written in Kotlin
- Developed with MVVM Architectural style recommended by Google
- Used Coroutines for asynchronous works
- Used Architecture Components: LiveData and Lifecycle-components
- Used dagger-android for Dependency Injection
- Used Retrofit for rest requests
- Used OkHttp for web socket
This project uses the following tools to maintain code quality. The configurations can be found in /qa
directory
-
./gradlew lint detekt ktlintCheck