This is your work, valued
WithReplySample. Elaboration of the only close-to-working implementation of WkWebView's WKScriptMessageHandlerWithReply instead of WKScriptMessageHandler. Credit to Jason at https://stackoverflow.com/users/135203/jason