Skip to content

Commit

Permalink
Merge pull request #67 from aknuds1/rpc-example
Browse files Browse the repository at this point in the history
Add missing import to example
  • Loading branch information
popravich committed May 10, 2016
2 parents 9f56fc5 + e5bd6fc commit 503d0a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Low-level request-reply example::

Example of RPC usage::

import asyncio
import aiozmq.rpc

class ServerHandler(aiozmq.rpc.AttrHandler):
Expand All @@ -147,7 +148,7 @@ Example of RPC usage::
client = yield from aiozmq.rpc.connect_rpc(
connect='tcp://127.0.0.1:5555')

ret = yield from client.rpc.remote_func(1, 2)
ret = yield from client.call.remote_func(1, 2)
assert 3 == ret

server.close()
Expand Down

0 comments on commit 503d0a3

Please sign in to comment.