Bidirectional rpc support over websocket