solid-spec
solid-spec copied to clipboard
PubSub
Background
- https://github.com/linkeddata/SoLiD#pubsub-notifications
HTTP/1.1 200 OK
...
Updates-Via: wss://example.org/
sub https://example.org/data/test
pub https://example.org/data/test
Questions
- Any plans to support Server-Sent Events besides Websockets? I understand that client just subscribes and doesn't send any data to server.
- Could client receive 'fat pings' including payload, for example patch for the resource with optional checksum for checking integrity.
seeAlso
- http://www.html5rocks.com/en/tutorials/eventsource/basics/
- http://streamdata.io/how_it_works/
- Sure, if we ever find the time to implement it, or if someone wants to submit a PR to our servers. But I don't think we'll mandate it for now.
- Yes, we're currently looking into it. We'll probably use LD Patch for it.
- If you only use Updates-Via to receive updates. It may make sense to mandate SSE instead of Websockets. I must admit that I didn't even try setting up wss: yet, but thought of simply using same https: as in other requests, sounds attractive to avoid need to deal with setting up extra TLS certificates.
- Currently Social WG charter says JSON (possibly JSON-LD). Some people might prefer JSON Patch over LD Patch. Would LD Patch have also JSON-LD serialization? http://opencreds.org/specs/source/identity-credentials/#writing-data-to-the-identity https://lists.w3.org/Archives/Public/public-linked-json/2015Apr/0000.html
-
I agree, SSE looks pretty sweet.
-
I doubt it will ever serialize to JSON-LD.