I've seen many questions about using raw TCP/UDP sockets in web browsers using JavaScript/Html5 however they are all old like this one posted 5 years ago. It is now 2021 and I'm wondering if there is any possibility at all to avoid using WebSockets and instead use raw TCP/UDP sockets so my local Web page can talk with my local Python socket server.
I don't mind if it's not accessible via internet, or if I need an extension as it's only for a home project where a web page on my Raspberry Pi zero will communicate with my main computer to request data via its Python socket server.
I know that Chrome apps had a socket API before the apps were dropped and I saw this article about Chromium devs wanting to add sockets, but failed to find any real info about it.
Does anyone know of any way to use raw TCP/UDP sockets in a browser?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…