Fix documentation example to new api.
Fix documentation example to new api.

evacchi/jnanomsg,niwinz/jnanomsg,evacchi/jnanomsg,RepublicWealth/jfuture-nanomsg,RepublicWealth/jfuture-nanomsg,niwinz/jnanomsg