News for hackers. Stuff that matters.
Re:Postgres WASM by pashkinelfe on Monday October 03, 2022 @11:00AM (#33068423)
For me it's interesting can this work without the need of external proxy server which seems to be needed only to overcome browser connections limitations and nothing else. May there be some more "internal" way to implement/allow these connections?

Overall this seems an inspiring thing. Thanks!

Re:Postgres WASM by pistoriusp on Monday October 03, 2022 @11:11AM (#33068603)
Snaplet person here: Totally. It cannot, and it very likely will never be able to do that. Raw sockets were added, and subsequently removed, from Chromium.

Do you mean, connect from 1 browser tab to another?

Re:Postgres WASM by burggraf on Monday October 03, 2022 @11:14AM (#33068642)
Interestingly we can do this, sorta, but in Chrome only. Using arp you can open a network between multiple tabs of the same Chrome instance, putting each browser vm on a different private ip. I only see this useful, though, for testing clustering systems. There won't be any outside internet connectivity in a setup like this though.
Re:Postgres WASM by burggraf on Monday October 03, 2022 @11:12AM (#33068611)
Supabase developer here.

At this point, the proxy is necessary because all the major browsers block direct TCP/IP traffic. They allow websocket connections so that's how we're getting around it.

There have been proposals to open up TCP/IP traffic but they've all been shot down so for the security implications.