Skip to content

Commit d09627f

Browse files
Added clarification regarding class based namespace being singletons
Fixes #59
1 parent e89215a commit d09627f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/index.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,14 @@ instance includes versions of several of the methods in the
244244
:class:`socketio.Server` class that default to the proper namespace when the
245245
``namespace`` argument is not given.
246246

247-
Note: if an event has a handler in a class-based namespace, and also a
248-
decorator-based function handler, the standalone function handler is invoked.
247+
In the case that an event has a handler in a class-based namespace, and also a
248+
decorator-based function handler, only the standalone function handler is
249+
invoked.
250+
251+
It is important to note that class-based namespaces are singletons. This means
252+
that a single instance of a namespace class is used for all clients, and
253+
consequently, a namespace instance cannot be used to store client specific
254+
information.
249255

250256
Using a Message Queue
251257
---------------------

0 commit comments

Comments
 (0)