Skip to content

Commit

Permalink
DIOS-3740 Fix sse events retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
rreynaud committed Jan 24, 2024
1 parent 03f3983 commit 45475eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whep.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export class WHEPClient extends EventTarget
if (this.eventsUrl)
{
//Get supported events
const events = links[Extensions.Core.ServerSentEvents]["events"]
? links[Extensions.Core.ServerSentEvents]["events"].split(" ")
const events = links[Extensions.Core.ServerSentEvents][0].params.events
? links[Extensions.Core.ServerSentEvents][0].params.events.split(",")
: [ "active", "inactive", "layers", "viewercount" ];
//Request headers
const headers = {
Expand Down

0 comments on commit 45475eb

Please sign in to comment.