solid-spec icon indicating copy to clipboard operation
solid-spec copied to clipboard

PubSub

Open elf-pavlik opened this issue 9 years ago • 3 comments

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

  1. Any plans to support Server-Sent Events besides Websockets? I understand that client just subscribes and doesn't send any data to server.
  2. 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/

elf-pavlik avatar May 02 '15 14:05 elf-pavlik

  1. 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.
  2. Yes, we're currently looking into it. We'll probably use LD Patch for it.

deiu avatar May 02 '15 15:05 deiu

  1. 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.
  2. 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

elf-pavlik avatar May 02 '15 16:05 elf-pavlik

  1. I agree, SSE looks pretty sweet.

  2. I doubt it will ever serialize to JSON-LD.

deiu avatar May 04 '15 08:05 deiu