Skip to content

Commit

Permalink
Added clarification regarding class based namespace being singletons
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
miguelgrinberg committed Nov 26, 2016
1 parent e89215a commit d09627f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,14 @@ instance includes versions of several of the methods in the
:class:`socketio.Server` class that default to the proper namespace when the
``namespace`` argument is not given.

Note: if an event has a handler in a class-based namespace, and also a
decorator-based function handler, the standalone function handler is invoked.
In the case that an event has a handler in a class-based namespace, and also a
decorator-based function handler, only the standalone function handler is
invoked.

It is important to note that class-based namespaces are singletons. This means
that a single instance of a namespace class is used for all clients, and
consequently, a namespace instance cannot be used to store client specific
information.

Using a Message Queue
---------------------
Expand Down

0 comments on commit d09627f

Please sign in to comment.