In the description of this commit (62971a202d18871d31e003d8c3b8b11ff6645f7e), you'll find this link which essentially says we can't directly create TCP connections via the browser on the client side. This makes sense I suppose, but I wonder if we could do anything to salvage using direct TCP connections without having to resort to WebSockets. I'd have to pull in some library like libwebsockets on the backend to support this.
Wait... does Node have direct support for raw socket access?
Fuck.
In the description of this commit (62971a202d18871d31e003d8c3b8b11ff6645f7e), you'll find this link which essentially says we can't directly create TCP connections via the browser on the client side. This makes sense I suppose, but I wonder if we could do anything to salvage using direct TCP connections without having to resort to WebSockets. I'd have to pull in some library like libwebsockets on the backend to support this.
Originally posted by @alexhutman in https://github.com/mackalex/pi-control-frontend/issues/2#issuecomment-2285285181
Don't think so, pal. Well, Node servers do, but not clients in the browser.