Glimesh / glimesh.tv

Glimesh is a next generation live streaming platform built by the community, for the community.
https://glimesh.tv
Other
470 stars 79 forks source link

Websocket based firehose API #57

Closed clone1018 closed 4 years ago

clone1018 commented 4 years ago

Should include:

mja00 commented 4 years ago

Could also use SSE for this. Pretty much just fling data at a url and have the client read and handle it. No need for keeping a connection up or using any standards other than HTTP.

haydenmc commented 4 years ago

SSE is worth considering but there are a couple notable limitations:

Services would have to make separate requests to send data back to Glimesh, which can be a little extra hurdle and a source of latency if bots or services want to respond quickly to events they're listening for.

Apparently there's a pretty strict connection limit with the EventSource API in Chromium and Firefox as well, which was marked won't fix.

I lean mostly toward web sockets as they seem to be the 'de facto' standard for real-time web APIs - they've been embraced by a lot of services and are familiar to many of the developers working in this space.

clone1018 commented 4 years ago

Some initial work completed on this, next up is to add subscriptions.

https://github.com/Glimesh/glimesh.tv/pull/121

clone1018 commented 4 years ago

Added in this PR: https://github.com/Glimesh/glimesh.tv/pull/173

Current unusable until we get cross_origin disabled in Phoenix.

clone1018 commented 4 years ago

Usable since https://github.com/Glimesh/glimesh.tv/pull/184