mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +03:00
Use domain instead of port in docs (#539)
This commit is contained in:
parent
7625ed2700
commit
db3a020122
|
@ -144,7 +144,7 @@ and configure routing in front of your interface and WSGI servers to route
|
|||
requests appropriately.
|
||||
|
||||
If you use Daphne for all traffic, it auto-negotiates between HTTP and WebSocket,
|
||||
so there's no need to have your WebSockets on a separate port or path (and
|
||||
so there's no need to have your WebSockets on a separate domain or path (and
|
||||
they'll be able to share cookies with your normal view code, which isn't
|
||||
possible if you separate by domain rather than path).
|
||||
|
||||
|
|
|
@ -492,7 +492,7 @@ chat to people with the same first letter of their username::
|
|||
|
||||
If you're just using ``runserver`` (and so Daphne), you can just connect
|
||||
and your cookies should transfer your auth over. If you were running WebSockets
|
||||
on a separate port, you'd have to remember to provide the
|
||||
on a separate domain, you'd have to remember to provide the
|
||||
Django session ID as part of the URL, like this::
|
||||
|
||||
socket = new WebSocket("ws://127.0.0.1:9000/?session_key=abcdefg");
|
||||
|
|
Loading…
Reference in New Issue
Block a user