---
name: "daphne"
section: "1"
platform: "linux"
package: "daphne"
version: "4.1.2-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/daphne"
---

# daphne(1)

Django HTTP/WebSocket server

## NAME

daphne — Django HTTP/WebSocket server

## SYNOPSIS

**daphne** \[**-h**\]  \[**-p** *PORT\]  \[***-b** *HOST\]  \[***--websocket\_timeout** *WEBSOCKET\_TIME\_OUT\]  \[***--websocket\_connect\_timeout** *WEBSOCKET\_CONNECT\_TIMEOUT\]  \[***-u** *UNIX\_SOCKET\]  \[***--fd** *FILE\_DESCRIPTOR\]  \[***-e** *SOCKET\_STRINGS\]  \[***-v** *VERBOSITY\]  \[***-t** *HTTP\_TIMEOUT\]  \[***--access-log** *ACCESS\_LOG\]  \[***--ping-interval** *PING\_INTERVAL\]  \[***--ping-timeout** *PING\_TIMEOUT\]  \[***--application-close-timeout** *SECONDS\>\]  \[***--ws-protocol** *WS\_PROTOCOLS \[WS\_PROTOCOLS ...\]\]  \[***--root-path** *ROOT\_PATH\]  \[***--proxy-headers***\]  \[channel\_layer\]*

## DESCRIPTION

*This manual page documents briefly the*  **daphne** command.

This manual page was written for the **Debian** distribution  because the original program does not have a manual page.

**daphne** is a program that manages the  Celery Worker Daemons and their queues.

## OPTIONS

This program follows the usual GNU command line syntax,  with long options starting with two dashes (\`-').  A summary of  options is included below.

- **-h** **--help**

  Show help message and exit.

- **-p** *PORT* **--port** *PORT*

  Port number to listen on.

- **-b** *HOST* **--bind** *HOST*

  The host/address to bind to.

- **--websocket\_timeout** *WEBSOCKET\_TIMEOUT*

  Maximum time to allow a websocket to be connected. -1 for infinite.

- **--websocket\_connect\_timeout** *WEBSOCKET\_CONNECT\_TIMEOUT*

  Maximum time to allow a connection to handshake. -1 for infinite.

- **-u** *UNIX\_SOCKET* **--unix-socket** *UNIX\_SOCKET*

  Bind to a UNIX socket rather than a TCP host/port.

- **--fd** *FILE\_DESCRIPTOR*

  Bind to a file descriptor rather than a TCP host/port or named unix socket.

- **-e** *SOCKET\_STRINGS* **--endpoint** *SOCKET\_STRINGS*

  Use raw server strings passed directly to twisted.

- **-v** *VERBOSITY* **--verbosity** *VERBOSITY*

  How verbose to make the output.

- **-t** *HTTP\_TIMEOUT* **--http-timeout** *HTTP\_TIMEOUT*

  How long to wait for worker server before timing out HTTP connections.

- **--access-log** *ACCESS\_LOG*

  Where to write the access log (- for stdout, the default for verbosity=1).

- **--ping-interval** *PING\_INTERVAL*

  The number of seconds a WebSocket must be idle before a keepalive ping is sent.

- **--ping-timeout** *PING\_TIMEOUT*

  The number of seconds before a WebSocket is closed if no response to a keepalive ping.

- **--application-close-timeout** *SECONDS*

  The number of seconds an ASGI application has to exit after client disconnect before it is killed (Default: 10).

- **--ws-protocol** *WS\_PROTOCOLS \[WS\_PROTOCOLS\]*

  The WebSocket protocols you wish to support.

- **--root-path** *ROOT\_PATH*

  The setting for the ASGI root\_path variable.

- **--proxy-headers**

  Enable parsing and using of X-Forwarded-For and X-Forwarded-Port headers and using that as the client address.

## ARGUMENTS

- channel\_layer

  The ASGI channel layer instance to use as path.to.module:instance.path.

## AUTHOR

This manual page was written by fladi fladi@debian.org for  the **Debian** system (and may be used by others).  Permission is  granted to copy, distribute and/or modify this document under  the terms of the GNU General Public License, Version 2 any  later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public  License can be found in /usr/share/common-licenses/GPL.
