set jsonrpc transport in client
code style