I do a quick little call to node during 'on-track'

def track_playingid(m) =
  # Grab the current filename when the track changes
  playingplid := m["theplid"]
  ignore(http.get("http://localhost:3000/songStarted/#{!playingplid}";))
end

  s = request.dynamic(id="thelist",get_request)
  s = on_track(id="thelist",track_playingid,s)


In my node code, I send back the 200 response back to Liquidsoap as quickly
as I can, then go off in node and do the real work.

That way I don't have Liquidsoap waiting for the response any longer than I
have to.

You could probably do the same thing in 'on-meta'

Nick

On Mon, Nov 2, 2015 at 11:59 AM, Dalibor Sojic <[email protected]>
wrote:

> I have node.js web socket which periodically read icecast .xml, and
> update "current track" to all web clients.
>
> Any hints how to make liquidsoap to "push" to web socket, instead nodejs
> to read .xml periodicaly?
>
>
> --
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to