This is a proof of concept about a simple socket to communicate several clients with each others and send messages.
- Ratchet: PHP framework to create web socket.
- Redis: Database management to storage client session information.
You only need to execute app/index.php. It could be in background mode.
For example
# nohup php index.php > chat.log 2>&1 &
Configure a web server (Nginx or Apache) and make the public folder as root directory. It contains a web client to connect and test the socket server.
I have written also a simple Android client that uses this socket to connect with other users.