I have been tasked with porting a local Windows + .NET Framework application to a frontend Javascript SPA.
The application interfaces with hardware components which communicate over serial. I understand the Web Serial and Web USB APIs are available here and do intend to use them for directly connected devices.
But we have many users using RS232 Serial-to-IP converters/servers to send the signal over TCP/IP.
It's my understanding a raw TCP/IP stream cannot be consumed via frontend JS.
I have researched hardware as well hoping there might be Serial-to-IP servers that support a different output stream like Websockets but haven't found any that report to do so. I'd also like to avoid asking all of our users to upgrade hardware if at all possible.
Are there any methods to achieving this in frontend-only JS?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment