Plugin specific cometd channel?

cpd73 <cpd73.a6ag6o-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
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?


Code:
--------------------
    
  {
  	"0": {
  		"channel": "/slim/subscribe",
  		"clientId": "0208246e",
  		"data": {
  			"request": [
  				"material-skin",
  				[
  					"notification"
  				]
  			],
  			"response": "/0208246e/slim/material-skin"
  		},
  		"id": "6"
  	}
  }
  
--------------------


Also, how do I "emit" a message on the cometd channel from the Perl
plugin side? What code would be required?



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=114969
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.