ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Java applet replacement

  • 3 ردود
  • 1 has this problem
  • 18 views
  • آخر ردّ كتبه Shadow110

more options

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)

more options

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 .

more options

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.

more options

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.