com.r3corda.node.api / APIServer / invokeProtocolSync

# invokeProtocolSync

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

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.