If you are not using Shared Hosting, then You can use Websocket interface by running an Separate chat process(out of apache). I have implemented it. Its just 100 lines of code. Any other solutions are resource hungery because it goes via Web-Server(Apache/Nginx). and Web Server is not meant for live connection.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.