This Android application connects to a basic WebSocket server to send and receive messages.
- OkHttp - HTTP client for WebSocket communication.
- Internet Permission
<uses-permission android:name="android.permission.INTERNET" />- Cleartext messages via network (cf. here)
android:usesCleartextTraffic="true"Find details on how to connect to the localhost machine from an Android emulator here.