Skip to content

Commit

Permalink
minor documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Aug 23, 2016
1 parent 7bc329a commit 5cc9199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ 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.

Using a Message Queue
---------------------

Expand Down
6 changes: 3 additions & 3 deletions socketio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ def set_handler(handler):
def register_namespace(self, namespace_handler):
"""Register a namespace handler object.
:param namespace_handler: A namespace subclass that handles all the
event traffic for a namespace. This method
accepts the class itself, or an instance.
:param namespace_handler: An instance of a :class:`Namespace`
subclass that handles all the event traffic
for a namespace.
"""
if not isinstance(namespace_handler, namespace.Namespace):
raise ValueError('Not a namespace instance')
Expand Down

0 comments on commit 5cc9199

Please sign in to comment.