Examples on integrating with Django Channels ?
See original GitHub issueAre there any examples on integrating this library with Django Channels ?
I see examples on how to integrate with WebSockets library, but Django Channels and it’s “Consumers” would be also nice. At least small example on how to create few handlers on Consumer. I’m trying something, but it turned out to be a really long method on JsonWebsocketConsumer
Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Introduction to Django Channels - TestDriven.io
In this tutorial, we'll build a real-time chat application with Django Channels, focusing on how to integrate Django with Django Channels.
Read more >Django Channels and WebSockets - LogRocket Blog
Learn how to use Django Channels and WebSockets, a new protocol that provides full-duplex communication, by building a real-time game app.
Read more >Getting Started with Django Channels - Real Python
In this tutorial, we will use Django Channels to create a real-time application that updates a list of users as they log in...
Read more >Django Channels — Channels 4.0.0 documentation
Channels is comprised of several packages: Channels, the Django integration layer; Daphne, the HTTP and Websocket termination server; asgiref, the base ASGI ...
Read more >Django Channels - Introduction and Basic Setup
Channels preserve the synchronous behavior of Django and add a layer of asynchronous protocols allowing users to write the views that are ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I managed to create basic “Consumer” for OCPP. If anyone searches for Django Channels integration, I have used something like (only “ocpp1.6” is accepted):
There are some pieces missing, but if anyone has better approach, feel free to write.
The
connection
argument ofChargePoint
must satisfy the interfaceasync def send(msg: str)
andasync def recv() -> str
. See https://github.com/mobilityhouse/ocpp/issues/94#issuecomment-643911096 . I don’t know Django Channels, but I guess it would be easy to create a wrapper around this type that satisfies the interface.