private void handshake ( ) { JsonNode helloResponse = this . readNextResponse ( ) ; if ( ! helloResponse . has ( "hello" ) ) { throw new JsiiException ( "Expecting 'hello' message from jsii-runtime" ) ; } String runtimeVersion = helloResponse . get ( "hello" ) . asText ( ) ; assertVersionCompatible ( JSII_RUNTIME_VERSION , runtimeVersion ) ; }
Verifies the hello message and runtime version compatibility . In the meantime we require full version compatibility but we should use semver eventually .