Questions tagged [event-stream]

This tag is for questions relating to event streams in HTTP. Event streams are an easy way for a server to have a continuous connection with the client and send data back and forth.

137 questions
2
votes
1 answer

Firebase realtime database REST event stream: do not download the whole tree

I am using the Firebase Realtime database REST API to stream events from the server when data gets uploaded (See https://firebase.google.com/docs/reference/rest/database#section-streaming-cancel) However, when I start the event stream, it always…
Felix
  • 6,885
  • 1
  • 29
  • 54
2
votes
1 answer

PHP retrieve text/event-stream data

For my DIY project I want to retrieve data from an 3rd party API which returns with the 'text/event-stream' header. Because the connection doesn't close, I do it with a timeout as shown here: $url='https://example.com/api/'; $ctx =…
Luxx
  • 392
  • 3
  • 6