Re: [w3c/push-api] A javascript api for sending push notifications to others (#303)

> @jrconlin There are a LOT of better protocols for doing messages (e.g. WebRTC, Message Layer Security (MLS), etc.)

I know push isn't the best p2p communication channel, but it very useful for setting up a WebRTC connection if both user know each others endpoints. 
I want to use web push to establish a WebRTC connection as a signaling service - without the need of having my own server / WebSocket logic. 

it's either shared/public web push subscriptions or allow us to somehow be able to connect to a more static deterministic/reusable SDP. (A.K.A: hole punch once and use one-to-many - so that multiple peers can connect to same static `RTCPeerConnection`, but it's not designed like that) We can't do that today. the only thing that comes even close to it is a push subscription that is re-usable, static and deterministic and dose not change. 

I can not say: "Here is a RTCPeerConnection who is online, go and talk to him via his SDP (hole punched ip/port) if you want to talk ti each other" 
instead i have to say: "here this person is online and have this push subscription, you can send a push message to him to start signaling and also send him your own subscription while you are at it so he can send back his SDP answer back to you"

instead i need to create a WebSocket and constantly be connected at least to some peers via my own server and never being able to disconnect from them. if you have a PHP server then this would be way harder b/c it isn't event driven or dose not share the same variables (as it could be connected to a completely different slave machine or thread)

Really wish that Mozilla did not pull the plug on supporting CORS. it was so useful. 

Now i want a built in method `pushManager.send(friendsSubscription, payload)` more then ever to be able send a cross origin message to all other push service provider cuz nobody wants to enable CORS 😞 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/issues/303#issuecomment-1419255066

You are receiving this because you are subscribed to this thread.

Message ID: <w3c/push-api/issues/303/1419255066@github.com>

Received on Monday, 6 February 2023 15:21:09 UTC