Re: Plugin specific cometd channel?
Michael Herger <slim-b/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Message-ID | <[email protected]> |
> I'd like to be able to send notifications from Material's Perl code to > the Javascript webapp. Seeing as Material uses cometd for LMS status, > etc, notifications I thought it might be a good idea to use cometd for > other plugin specific notifications. How would I subscribe to a plugin > specifc cometd channel? Would the following work? > > Also, how do I "emit" a message on the cometd channel from the Perl > plugin side? What code would be required? Ahm... I'm sorry to say I have no clue. I suggest you poke around Slim::Control::Request and autoexecute in there. That's what I'm seeing happening around the status query code.