X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Java applet replacement

Kuphostiwe

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.

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.

Eminye Imininingwane Yohlelo

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Eminye Imininingwane

user1929 72 izisombululo 290 izimpendulo
Kuphostiwe

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 .

I think you could do this by writing a WebExtension with [https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging 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 .

Umnikazi wombuzo

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.

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.
Shadow110 1072 izisombululo 14836 izimpendulo
Kuphostiwe

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.

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.