I'd like to have support for instant messaging, i. e.
to recieve a notification, when someone else invited
me, send me a message within webchess or it's my turn
in an active game. I prefer the jabber protocol,
because it's also free and easy to use.
There's a php implementation of a jabber client at
http://cjphp.netflint.net which can be used in the
following way:
function messageIM() {
require("class.jabber.php");
$jabber = new Jabber();
$jabber->Connect();
$jabber->SendAuth();
$message = array();
$message[subject] = "WebChess";
$message[body] = "The opponent has moved.\nhttp://
your-webchess-website.net/";
$to = "user@jabberserver.example.net";
$jabber->SendMessage($to,"normal","",$message,NULL);
$jabber->Disconnect();
}
I do have this feature working, but it only works for
my user and it only notifies my about the opponent
making his move. So please implement it in a way it
works for all users and all events. If you need further
information, please contact me.