Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Cerulean)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. Server-sent Events for the ActivityPub API

Server-sent Events for the ActivityPub API

Pianificato Fissato Bloccato Spostato Technical Discussion
6 Post 4 Autori 26 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • evan@activitypub.spaceundefined Questo utente è esterno a questo forum
    evan@activitypub.spaceundefined Questo utente è esterno a questo forum
    evan@activitypub.space
    scritto su ultima modifica di
    #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.

    1 Risposta Ultima Risposta
    0
    • fentiger@mastodon.socialundefined Questo utente è esterno a questo forum
      fentiger@mastodon.socialundefined Questo utente è esterno a questo forum
      fentiger@mastodon.social
      scritto su ultima modifica di
      #2

      @evan There was some discussion of this on SocialHib 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.spaceundefined 1 Risposta Ultima Risposta
      0
      • julian@activitypub.spaceundefined Questo utente è esterno a questo forum
        julian@activitypub.spaceundefined Questo utente è esterno a questo forum
        julian@activitypub.space
        scritto su ultima modifica di
        #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.

        1 Risposta Ultima Risposta
        0
        • fentiger@mastodon.socialundefined fentiger@mastodon.social

          @evan There was some discussion of this on SocialHib 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.spaceundefined Questo utente è esterno a questo forum
          evan@activitypub.spaceundefined Questo utente è esterno a questo forum
          evan@activitypub.space
          scritto su ultima modifica di
          #4

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

          1 Risposta Ultima Risposta
          0
          • rimu@piefed.socialundefined Questo utente è esterno a questo forum
            rimu@piefed.socialundefined Questo utente è esterno a questo forum
            rimu@piefed.social
            scritto su ultima modifica di
            #5

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

            julian@activitypub.spaceundefined 1 Risposta Ultima Risposta
            0
            • rimu@piefed.socialundefined rimu@piefed.social

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

              julian@activitypub.spaceundefined Questo utente è esterno a questo forum
              julian@activitypub.spaceundefined Questo utente è esterno a questo forum
              julian@activitypub.space
              scritto su ultima modifica di
              #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 Risposta Ultima Risposta
              0

              Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

              Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

              Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

              Registrati Accedi
              Rispondi
              • Risposta alla discussione
              Effettua l'accesso per rispondere
              • Da Vecchi a Nuovi
              • Da Nuovi a Vecchi
              • Più Voti


              Feed RSS
              Server-sent Events for the ActivityPub API
              @pierobosio@soc.bosio.info
              V4.10.1 Contributors
              • Accedi

              • Accedi o registrati per effettuare la ricerca.
              • Primo post
                Ultimo post