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
Wifsimster,
i really appreciate for what you did, i am actually looking for a rtsp to webrtc live-streaming solution .
your es6 version is extremely easy to understand the flow......let me have some hope to get it done.
if you add hoon's suggestion , things will works perfectly.....
( maybe user might need create a views for themself, but the things is working. )
this.on('camdata', (data) => { for (let i in this.server.clients) { let client = this.server.clients[i] if(client.readyState === WebSocket.OPEN) { client.send(data) } } })
javascript Set iteration
this.on('camdata', (data) => { for (let client of this.server.clients) { if(client.readyState === WebSocket.OPEN) { client.send(data) } } })
The text was updated successfully, but these errors were encountered: