com.r3corda.node.internal / APIServerImpl / invokeProtocolSync

# invokeProtocolSync

`fun invokeProtocolSync(type: ProtocolRef, args: Map<String, Any?>): Any?`
Overrides APIServer.invokeProtocolSync

This method would not return until the protocol is finished (hence the "Sync").

Longer term wed add an Async version that returns some kind of ProtocolInvocationRef that could be queried and would appear on some kind of event message that is broadcast informing of progress.

Will throw exception if protocol fails.