Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

javascript - Frontend raw TCP/UDP sockets in a browser, any way at all in 2021?

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...