mirror of
https://github.com/django/daphne.git
synced 2025-05-07 17:13:47 +03:00
* Add Delay Protocol Server Add a process that listens to a specific channel and delays incoming messages by a given time. * Add custom django command rundelay * Add test suite * Implements #115 * Add channels.delay app * Add AppConfig * Move rundelay command to channels.delay app * Refactor DelayedMessage into model Move login into a database backed model. * Update Worker * Add migration * Add delay docs page * Add to TOC * Fix import sorting * Add ASGI spec document for Delay Protocol * Update channels.delay doc with new channel name * remove interval docs * Refactor Delay to use milliseconds instead of seconds Use milliseconds as the default unit. Gives more control to developers. * Remove interval logic from DelayedMessage * Remove interval tests * Tweak test logic to use milliseconds
9 lines
160 B
Python
9 lines
160 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class DelayConfig(AppConfig):
|
|
|
|
name = "channels.delay"
|
|
label = "channels.delay"
|
|
verbose_name = "Channels Delay"
|