channels icon indicating copy to clipboard operation
channels copied to clipboard

Developer-friendly asynchrony for Django

Results 139 channels issues
Sort by recently updated
recently updated
newest added

If you follow tutorial steps 1-3 and then change the consumer to be of type `AsyncJsonWebsocketConsumer` instead of `AsyncWebsocketConsumer` and you mutate the `event` received in the `chat_message` method by...

It would be nice if we can run HTTPS server using channels's runserver without hassle.

Django 3 has start the road to asynchrony. I am kind of confused about the future of this (great) library and how it will play along with Django 3. Is...

documentation

Hello! I have an HTTP endpoint that yields newline delimited JSON objects while the request is open, via Django's StreamingHttpResponse, like this: ``` def streaming_view(request): streaming_content = infinite_generator() return StreamingHttpResponse(streaming_content)...

In Custom Authentication section of documentation, there is database query in `__call__` method: ``` def __call__(self, scope): ... user = User.objects.get(id=int(scope["query_string"])) ... ``` It's OK with Django 2, but in...

documentation
exp/beginner

It appears that if you write a message to a channel, for example via `group_send`, and no reader ever appears on that channel, the messages will remain in the in-memory...

enhancement

channels: 2.2.0 django: 2.2.4 channels-redis: 2.4.0 routing.py: ``` application = ProtocolTypeRouter( {"websocket": AuthMiddlewareStack(URLRouter(websocket_routes))} ) ``` consumers.py: ``` class ExportConsumer(JsonWebsocketConsumer): def connect(self): self.accept() if not self.scope['session'].get('something'): self.scope['session']['something'] = 0 else: self.scope['session']['something']...

documentation

Hi, As a fairly new channels user I find the documentation on how to test channel applications somewhat sparse. Lately I implemented and tested channel workers so I feel I...

documentation

PR #946 added support for nested `URLRouter` instances, but without support for `path()` in this case. It would be nice to add that support. There's a lot of discussion on...

https://github.com/django/channels/blob/42070bfe400048d7c8efe551d37f7ac0d26d8e7e/channels/layers.py#L123 I am reading the source code of Django channels, get_capacity(self, channel) method implements as this ``` def get_capacity(self, channel): """ Gets the correct capacity for the given channel; either...