Bidirectional rpc support over simple message interface, e.g. WebSocket