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
Hi,
First, thanks for all, this project is awesome.
I'm trying to retrieve the clanName from a broadcast URL (nodeJS).
The goal is just : open the URL, get the names, close the stream and return an object.
I can read a stream with this simple example but I'm a little bit lost in the documentation now.
It seems to be in located in df.teams but I can not make a working function, I'll appreciate any input !
I've tried this loop without success, the array is always empty ans the script is stuck, waiting for the end of the demo ? :
const{ DemoFile }=require('demofile');functionparseDemoFile(url){constdf=newDemoFile();letres={t: '',ct: ''};df.on('start',()=>{// Start readingconsole.log("Start reading !")console.log(df.header)});// Start parsing the stream now that we've added our event listenersdf.parseBroadcast(url);returnres;}parseDemoFile("https://url/match/s111t222");
One last question, it seems impossible to fetch HTTP broadcast request, only HTTPS, so it's not very handly to get broadcast on the LAN, can I bypass this restriction and how ?
TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
First, thanks for all, this project is awesome.
I'm trying to retrieve the
clanName
from a broadcast URL (nodeJS).The goal is just : open the URL, get the names, close the stream and return an object.
I can read a stream with this simple example but I'm a little bit lost in the documentation now.
It seems to be in located in
df.teams
but I can not make a working function, I'll appreciate any input !I've tried this loop without success, the array is always empty ans the script is stuck, waiting for the end of the demo ? :
This is my working skeleton :
One last question, it seems impossible to fetch HTTP broadcast request, only HTTPS, so it's not very handly to get broadcast on the LAN, can I bypass this restriction and how ?
Thanks again,
Beta Was this translation helpful? Give feedback.
All reactions