Java applet replacement
I have a Java applet running in a very old version of Firefox that will need to be replaced once we upgrade to the newest version. This applet opens a TCP/IP socket to a daemon running on the local system, which then communicates with a hardware device connected to a serial port. The device sends encrypted data thru the socket which is decrypted by the applet. The applet uses Javascript to update the webpage, and can send and receive real-time data to/from the user which is eventually submitted back to the web server. I haven't been able to find any technique for accomplishing this same task without using an applet. Any advice on how to achieve this would be greatly appreciated.
All Replies (3)
I think you could do this by writing a WebExtension with native messaging . Basically, users would install your extension when they want to use your website. The extension would connect to the daemon, and would provide an API for the webpage JS to retrieve the data.
There's an Addons forum here that's probably a better place to get more details about this: https://discourse.mozilla.org/c/add-ons .
Thank you very much for the info! I'll take a look at the linked documentation and follow-up in the forum you referenced if needed.
Is also https://github.com/ you may want to search through or post in the forum.
Please let us know if this solved your issue or if need further assistance.