Django-AWS-API-Gateway-WebSockets

Django-AWS-API-Gateway-WebSockets helps Django projects receive and send messages over AWS API Gateway WebSocket APIs.

It provides Django models, views, mixins, queryset helpers, admin actions, and management commands for working with WebSocket connections backed by AWS API Gateway.

The package is designed to make it easier to:

  • receive WebSocket messages in Django class-based views;

  • send a message back to the current connection;

  • send messages to all active sessions in a channel;

  • multicast or broadcast messages to groups of connected clients;

  • maintain WebSocket session state in your Django database;

  • create and manage API Gateway resources from Django.

Documentation map

If you are new to the project, start with:

If you are setting up AWS, read:

If you are building a frontend client, read:

If you are sending messages from Django, read:

If you are preparing for production, read:

If you are contributing or maintaining the project, read:

Getting started

Getting started

AWS setup

Usage

Usage

Security and operations

Security and operations

Project

Project

API reference

Indices and tables