Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Discussion
  3. Server-sent Events for the ActivityPub API

Server-sent Events for the ActivityPub API

Scheduled Pinned Locked Moved Technical Discussion
6 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • evan@activitypub.spaceE This user is from outside of this forum
    evan@activitypub.spaceE This user is from outside of this forum
    evan@activitypub.space
    wrote last edited by
    #1

    One of the user stories for the ActivityPub API task force is to enable real-time updates for clients.

    https://github.com/swicg/activitypub-api/issues/9

    To help with this, I added a draft specification for server-sent events:

    https://swicg.github.io/activitypub-api/sse

    If you're interested, please review and provide comments on the GitHub issue. I'd like to start a reference implementation soon.

    fentiger@mastodon.socialF julian@activitypub.spaceJ 2 Replies Last reply
    0
    • evan@activitypub.spaceE evan@activitypub.space

      One of the user stories for the ActivityPub API task force is to enable real-time updates for clients.

      https://github.com/swicg/activitypub-api/issues/9

      To help with this, I added a draft specification for server-sent events:

      https://swicg.github.io/activitypub-api/sse

      If you're interested, please review and provide comments on the GitHub issue. I'd like to start a reference implementation soon.

      fentiger@mastodon.socialF This user is from outside of this forum
      fentiger@mastodon.socialF This user is from outside of this forum
      fentiger@mastodon.social
      wrote last edited by
      #2

      @evan There was some discussion of this on SocialHub a while back: https://socialhub.activitypub.rocks/t/fep-proposal-c2s-websocket-endpoint/2955

      Or you might have been aware of it already, in which case, sorry for the noise 😉

      evan@activitypub.spaceE 1 Reply Last reply
      0
      • evan@activitypub.spaceE evan@activitypub.space

        One of the user stories for the ActivityPub API task force is to enable real-time updates for clients.

        https://github.com/swicg/activitypub-api/issues/9

        To help with this, I added a draft specification for server-sent events:

        https://swicg.github.io/activitypub-api/sse

        If you're interested, please review and provide comments on the GitHub issue. I'd like to start a reference implementation soon.

        julian@activitypub.spaceJ This user is from outside of this forum
        julian@activitypub.spaceJ This user is from outside of this forum
        julian@activitypub.space
        wrote last edited by
        #3

        evan makes a ton of sense! The ActivityPub API doesn't have a subscribe mechanism, so this makes sense.

        SSE also makes sense vs web sockets. There are plans on our end to establish SSE as well, and deprecate our own websocket implementation.

        rimu@piefed.socialR 1 Reply Last reply
        0
        • fentiger@mastodon.socialF fentiger@mastodon.social

          @evan There was some discussion of this on SocialHub a while back: https://socialhub.activitypub.rocks/t/fep-proposal-c2s-websocket-endpoint/2955

          Or you might have been aware of it already, in which case, sorry for the noise 😉

          evan@activitypub.spaceE This user is from outside of this forum
          evan@activitypub.spaceE This user is from outside of this forum
          evan@activitypub.space
          wrote last edited by
          #4

          fentiger@mastodon.social Thanks, I'll look through it for ideas.

          1 Reply Last reply
          0
          • julian@activitypub.spaceJ julian@activitypub.space

            evan makes a ton of sense! The ActivityPub API doesn't have a subscribe mechanism, so this makes sense.

            SSE also makes sense vs web sockets. There are plans on our end to establish SSE as well, and deprecate our own websocket implementation.

            rimu@piefed.socialR This user is from outside of this forum
            rimu@piefed.socialR This user is from outside of this forum
            rimu@piefed.social
            wrote last edited by
            #5

            Yeah I went the SSE route too. Nice n simple.

            julian@activitypub.spaceJ 1 Reply Last reply
            0
            • rimu@piefed.socialR rimu@piefed.social

              Yeah I went the SSE route too. Nice n simple.

              julian@activitypub.spaceJ This user is from outside of this forum
              julian@activitypub.spaceJ This user is from outside of this forum
              julian@activitypub.space
              wrote last edited by
              #6

              The problem for us is that we actually did take advantage of the bi-directional data flow available with web sockets. However, probably > 90% of our websocket calls were simple data requests, so we dropped back to bog-standard GET and POST. Why re-invent the wheel?

              It's that other half where you want to communicate events in real-time, where SSE makes sense.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups