django / django/channels

Document long polling

Open
#524 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation exp/intermediate
Dominant language
Python
Stars
6.4k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

It looks like channel handle long polling via ResponseLater exception but no test or documentation on how to retreive connexion to send data back and close it.

I supose we may use channels.handler.ViewConsumer the same way we would use a WebsocketConsumer, but I didn't find this info in any doc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the ResponseLater exception and channels.handler.ViewConsumer usage to understand how a long-polling connection is retrieved, sent data, and closed. Add a focused test and documentation explaining that flow, including how it differs from WebsocketConsumer usage; done means both the behavior and the documented example are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.