Commit 79223645 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added documentation for connection and label properties in Protocol class

parent d1aa4157
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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):