You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The streamer is available as stream.<apihost> over https.
Optionally we may have also <user>.<apihost>/stream that is acutually proxying to stream.<apihost>/<user>
An user will stream an action <package>/<action> with:
const url = "/stream/<package>/<action>"
// or "https://stream.<apihost>/<user>/<package>/<action>"
const evtSource = new EventSource(url, {
withCredentials: true,
// other parameters here
});
evtSource.onmessage = (event) => {
const data = event.data
// do something with the event data
};
The steamer once received the request, assuming it is a json post,
parses the json
opens a socket for listening in a random port
invoke the action <user>/<package>/<action> asynchronously passing to the data additionally in the args the extra parameters STREAM_HOST and STREAM_PORT
wait in the socket the user writes the content to be streamed make a buffer
Activity
d4rkstar commentedon Jan 21, 2025
this task was completed