I looked online and cant seem to get anything that makes much sense!
Query:
Regarding some code:
- Code: Select all
var pushstream = new PushStream({
host: window.location.hostname,
port: window.location.port,
modes: GUI.mode,
reconnectOnChannelUnavailableInterval: 5000
});
pushstream.onmessage = renderUI;
What is sending the data to this function? I understand the whole onmessage part but where and what is making it possible to send that information? I couldnt find a lead on it. If i was to make my own pushstream function, how would i go about it? I know its to do with nginx and some configurations but my main confusion is where the data is being sent from so the function can do its thing.
I understand the GUI browser DB (I call it), seems to obtain its values on its first load (and continued from then on) from these pushstreams?
If anyone or the DEVS themselves can explain that would be awesome! I would love to learn how its done so i can use it in future projects as it seems very useful!
Regards,
Will.