Django Channels #2 - Android OkHttp3 WebSocket | MVVM + Redis + ASGI + Daphne Setup

Опубликовано: 28 Февраль 2026
на канале: Swarup Kumar Saha
135
5

Welcome to Part 2 of our Django Channels Tutorial series!

In this video, we integrate Android's OkHttp3 WebSocket client with Django Channels, building a real-time communication system between a mobile app and Django backend using modern tools like ASGI, Redis, and Daphne/Uvicorn.

🔧 What you'll learn in this video:

Implementing WebSocket client in Android using OkHttp3
Following MVVM architecture with MutableList for data updates
Setting up Redis Channel Layer with pip install channels-redis
Installing WebSocket server dependencies: pip install daphne and pip install uvicorn
Understanding how ASGI enables real-time communication
Testing WebSocket communication between Android and Django backend

pip install channels
pip install channels-redis
pip install daphne
pip install uvicorn