by michaelkrem on 11/1/24, 11:35 PM with 159 comments
by modeless on 11/2/24, 2:08 AM
Direct sockets will have their uses for compatibility with existing applications, but it's possible to do almost any kind of networking you want on the web if you control both sides of the connection.
by chocolatkey on 11/2/24, 12:59 AM
by chrisvenum on 11/2/24, 3:57 AM
by jeswin on 11/2/24, 4:49 AM
But what they can do is not consistent - for example, it can take your picture and listen to your microphone if you give permissions; but it can't open a socket. Another example: Chrome came out with an File System Access API [2] in August; it's fantastic (I am using it) and it allows a class of native apps to be replaced by Web Apps. As a user, I don't mind having to jump through hoops (as a user) and giant warning screens to accept that permission - but I want this ability on the Web Platform.
For Web Apps to be able to complete with native apps, we need more flexibility Mozilla. [1]
[1]: https://mozilla.github.io/standards-positions/ [2]: https://developer.chrome.com/docs/capabilities/web-apis/file...
by Uptrenda on 11/2/24, 2:04 PM
by mlhpdx on 11/2/24, 3:57 AM
by Spivak on 11/2/24, 3:43 AM
by fhdsgbbcaA on 11/2/24, 3:31 AM
by hipadev23 on 11/2/24, 7:31 AM
by troupo on 11/2/24, 9:35 AM
Status in Chrome: shipping in 131
Expect people claiming this is a vital standard that Apple is not implementing because they don't want web apps to compete with App Store. Also expect sites like https://whatpwacando.today/ uncritically just include this
by badgersnake on 11/2/24, 6:12 PM
by bloomingkales on 11/2/24, 2:44 AM
by arzig on 11/2/24, 11:46 AM
by westurner on 11/2/24, 8:59 PM
> I can understand FF's position on Direct Sockets [...] Without support for Direct Sockets in Firefox, developers have JSONP, HTTP, WebSockets, and WebRTC.
> Typically today, a user must agree to install a package that uses L3 sockets before they're using sockets other than DNS, HTTP, and mDNS. HTTP Signed Exchanges is one way to sign webapps.
But HTTP Signed Exchanges is cancelled, so arbitrary code with sockets if one ad network?
...
> Mozilla's position is that Direct Sockets would be unsafe and inconsiderate given existing cross-origin expectations FWIU: https://github.com/mozilla/standards-positions/issues/431
> Direct Sockets API > Permissions Policy: https://wicg.github.io/direct-sockets/#permissions-policy
> docs/explainer.md >> Security Considerations : https://github.com/WICG/direct-sockets/blob/main/docs/explai...
by demarq on 11/2/24, 7:04 PM
I’ll keep my eyes on this one, see where we are in a year
by FpUser on 11/2/24, 4:01 PM
by revskill on 11/2/24, 3:08 PM
by kureikain on 11/2/24, 6:27 AM
by Asmod4n on 11/2/24, 12:12 PM
by sabbaticaldev on 11/2/24, 12:16 PM
by hexo on 11/2/24, 2:39 PM
by tjoff on 11/2/24, 7:33 AM
by grishka on 11/2/24, 6:46 PM
by pjmlp on 11/2/24, 11:28 AM
by huqedato on 11/2/24, 8:38 AM
by Jiahang on 11/2/24, 2:59 AM
by xenator on 11/2/24, 2:35 AM