From 18b2127c732dc5bb9aa7dceef6e73b2d1e24a525 Mon Sep 17 00:00:00 2001 From: Andrew Pashkin Date: Wed, 21 Dec 2016 19:40:05 +0300 Subject: [PATCH 1/2] Add mentioning of SIDs to the list of what each namespace has separate from other namespaces. --- docs/index.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index d71439a..f456c41 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -204,11 +204,11 @@ as a pathname following the hostname and port. For example, connecting to *http://example.com:8000/chat* would open a connection to the namespace */chat*. -Each namespace is handled independently from the others, with separate event -handlers and rooms. It is important that applications that use multiple -namespaces specify the correct namespace when setting up their event handlers -and rooms, using the optional ``namespace`` argument available in all the -methods in the :class:`socketio.Server` class. +Each namespace is handled independently from the others, with separate session +IDs (``sid``s), event handlers and rooms. It is important that applications +that use multiple namespaces specify the correct namespace when setting up +their event handlers and rooms, using the optional ``namespace`` argument +available in all the methods in the :class:`socketio.Server` class. When the ``namespace`` argument is omitted, set to ``None`` or to ``'/'``, the default namespace, representing the physical connection, is used. From 19a7c9d3331981eed7ce110d034a5cef7af9f5be Mon Sep 17 00:00:00 2001 From: Andrew Pashkin Date: Wed, 21 Dec 2016 19:40:59 +0300 Subject: [PATCH 2/2] Remove misleading phrase about default namespace representing "physical connection". --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index f456c41..b4bb235 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -211,7 +211,7 @@ their event handlers and rooms, using the optional ``namespace`` argument available in all the methods in the :class:`socketio.Server` class. When the ``namespace`` argument is omitted, set to ``None`` or to ``'/'``, the -default namespace, representing the physical connection, is used. +default namespace, is used. Class-Based Namespaces ----------------------