Skip to content

Commit 5cc9199

Browse files
minor documentation fixes
1 parent 7bc329a commit 5cc9199

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ 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.
249+
247250
Using a Message Queue
248251
---------------------
249252

socketio/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ def set_handler(handler):
155155
def register_namespace(self, namespace_handler):
156156
"""Register a namespace handler object.
157157
158-
:param namespace_handler: A namespace subclass that handles all the
159-
event traffic for a namespace. This method
160-
accepts the class itself, or an instance.
158+
:param namespace_handler: An instance of a :class:`Namespace`
159+
subclass that handles all the event traffic
160+
for a namespace.
161161
"""
162162
if not isinstance(namespace_handler, namespace.Namespace):
163163
raise ValueError('Not a namespace instance')

0 commit comments

Comments
 (0)