Closed dniku closed 8 years ago
It worked when separate your code into 2 modules. So your code is something wrong.
This seems not msgpack-rpc-python issue. Closed.
Could you provide an example of working notify()
code?
Server:
import msgpackrpc
class SumServer(object):
def notification(self, s):
print(s)
server = msgpackrpc.Server(SumServer())
server.listen(msgpackrpc.Address("localhost", 4000))
server.start()
Client:
import msgpackrpc
client = msgpackrpc.Client(msgpackrpc.Address("localhost", 4000))
client.notify('notification', 'boo')
I couldn't get
client.notify()
to work. It looks like the call is going nowhere. The following code prints nothing:Are there any examples of using
.notify()
?