Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Send a command message to the other end.

:param cmd: The command to send to the other end.
:param payload: The command payload.  Note that all elements
                of the payload must be serializable to JSON.

src/t/u/turnstile-HEAD/tests/unit/test_remote.py   turnstile(Download)
        conn = remote.Connection(sock)
 
        conn.send('cmd', 'arg1', 'arg2')
 
        sock.sendall.assert_called_once_with(