Configuration¶
The following settings.py options are available for customizing Channels Demultiplexer’s behaviour.
CHANNELS_DEMULTIPLEXER_MULTIPLEX_KEY: key that is used to (de)multiplex messages. Default:streamCHANNELS_DEMULTIPLEXER_PAYLOAD_KEY: key that contains the actual payload. Default:payloadCHANNELS_DEMULTIPLEXER_TIMEOUT: number of seconds consumers have to handle a disconnect. Default:5CHANNELS_DEMULTIPLEXER_MANAGE_ENVELOPE: IfTrue, only the payload of a message is forwarded to a consumer and messages sent by a consumer are automatically wrapped in an envelope with keysCHANNELS_DEMULTIPLEXER_MULTIPLEX_KEYandCHANNELS_DEMULTIPLEXER_PAYLOAD_KEY. Default:True