Overview
The Node.js library allows you to run Ajax IM using the included standalone message server. This allows you to support a significantly larger number of users simultaneously without as significant of a server strain. The script requires that a database library (such as the included MySQL library) be in use in order to handle authentication; all messages are sent and received through the Node.js server.
This library makes use of the Memcache PHP extension, as the Node.js server uses the Memcache API to communicate with external scripts and applications. If you do not have the Memcache library installed in your PHP installation, you will need install it before using this library.
This library is database-agnostic, meaning that it should work with any properly-constructed database library.
add_friend($friend, $group) Function
The add_friend($friend, $group) allows an authenticated user to add a new friend to their buddylist. It is a good example of how to use a database library and communicate with the Node.js server. If you do not need this function, it is safe to simply delete it.
Leave a comment