Send a Server message to a User/Client

Hi There,

I’m busy to look at the possibility of creating a plugin using the Openfire API that will monitor devices and send server notifications to them. Mainly it will use a few Custom Commands, hook into a couple “user” events and, ofcourse, dispatch a server message to the clients now and again.

Now, I have Custom Commands and user events covered more or less, but I’m stuck at getting information about sending a message from the server to a client/user. Something like “You’ve got mail” or “A monkey poked your truck”. I also intend to send some Json formatted data in the messages…

Could someone please point me in the general direction I should be looking?