-> case get(session.base_url) do {:ok, data} -> event_manager = session.event_manager case data do %{janus: "keepalive"} -> GenEvent.notify(event_manager, {:keepalive, pid}) %{sender: sender} -> plugin_pid = session.handles[sender] if plugin_pid do case data do %{janus: "event", plugindata: plugindata} -> jsep = data[:jsep] Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:event, pid, plugin_pid, plugindata.data, jsep}))
-> case get(session.base_url) do {:ok, data} -> event_manager = session.event_manager case data do %{janus: "keepalive"} -> GenEvent.notify(event_manager, {:keepalive, pid}) %{sender: sender} -> plugin_pid = session.handles[sender] if plugin_pid do case data do %{janus: "event", plugindata: plugindata} -> jsep = data[:jsep] Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:event, pid, plugin_pid, plugindata.data, jsep}))
-> case get(session.base_url) do {:ok, data} -> event_manager = session.event_manager case data do %{janus: "keepalive"} -> GenEvent.notify(event_manager, {:keepalive, pid}) %{sender: sender} -> plugin_pid = session.handles[sender] if plugin_pid do case data do %{janus: "event", plugindata: plugindata} -> jsep = data[:jsep] Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:event, pid, plugin_pid, plugindata.data, jsep}))
-> case get(session.base_url) do {:ok, data} -> event_manager = session.event_manager case data do %{janus: "keepalive"} -> GenEvent.notify(event_manager, {:keepalive, pid}) %{sender: sender} -> plugin_pid = session.handles[sender] if plugin_pid do case data do %{janus: "event", plugindata: plugindata} -> jsep = data[:jsep] Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:event, pid, plugin_pid, plugindata.data, jsep}))
-> case get(session.base_url) do {:ok, data} -> event_manager = session.event_manager case data do %{janus: "keepalive"} -> GenEvent.notify(event_manager, {:keepalive, pid}) %{sender: sender} -> plugin_pid = session.handles[sender] if plugin_pid do case data do %{janus: "event", plugindata: plugindata} -> jsep = data[:jsep] Agent.get plugin_pid, &(GenEvent.notify(&1.event_manager, {:event, pid, plugin_pid, plugindata.data, jsep}))