Receiving PeerStatus Notifications

We would like to receive PeerStatus notifications in the UI. I created a plugin with an AMI_Event_Handler for the PeerStatus event. This plugin gets called when the event occurs, but I do not see how I can get the message back to the UI.

In other plugins, we created a UserEvent with a unique family name and that was sent back to the UI. However, in the case of the PeerStatus there is no channel and I am seeing:

There is no channel , but we've got Family. Do nothing

in the FOP2 log.

Is there something I can put in the Channel parameter to tell the FOP2 server to ignore the channel and send the notification? If not, is there another mechanism where I can send a message from the plugin to the UI?

Comments

  • Well, events require a channel to be passed to the web ui. There is a special/fake channel named GLOBAL that can be used to broadcast an event to all connected clients. So try setting Channel: GLOBAL in your UserEvent

  • Using Channel: GLOBAL works great. Thank you.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file