Skip to content
Snippets Groups Projects
Commit 79223645 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added documentation for connection and label properties in Protocol class

parent d1aa4157
No related branches found
No related tags found
No related merge requests found
......@@ -34,10 +34,18 @@ class Protocol(object):
@property
def connection(self):
'''
The :class:`~sjrpc.core.RpcConnection` instance which handle
this protocol.
'''
return self._connection
@property
def label(self):
'''
The label binded to this protocol in the
:class:`~sjrpc.core.RpcConnection` instance.
'''
return self._label
def send(self, payload):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment