-}*/
-//document.addEventListener("GsswebEvent", function(e) { gssweb.myListener(e); }, false, true);
-// The last value is a Mozilla-specific value to indicate untrusted content is allowed to trigger the event.
+ appTag = msg.cookies.app_tag;
+
+ // Send the message to the NativePort / command line
+ console.info(
+ '[' + appTag + '] About to invoke native function: [' +
+ JSON.stringify(msg) + ']'
+ );
+ reply = gss_request( JSON.stringify(msg) );
+ response = JSON.parse(reply.readString() );
+ console.info('[' + appTag + '] ... native function invoked.');
+ console.info('[' + appTag + '] ... returned: ' + response);
+
+ return(response);
+}