Guide: Use Javascript in Swift (Part 2)
Now that you have a Plugin class, let’s use it! Previous: Create the Plugin class Create a Javascript plugin – my_plugin.js Our plugin here simply echoes any message it receives back to the host app. // This function is called by our host app function onmessage(data) { // Just pass all incoming messages back to