This software provides the WebSocket service
required by the Protoweb dynamic chat system.
The service acts as a relay between clients and the backend PHP,
using WebSocketd.
This service works standalone by default, saving messages as JSON files.
Integration with CodeIgniter 3 is optional for SQL-based storage.
Recommended install location:
/srv/websocket/or/var/www/websocket/
Do not install in/etc/websocket/, which is for configuration only.
cd '/srv/websocket/' # or '/var/www/websocket/'
git clone 'https://github.com/msilva88-dev/protoweb-ws_php.git'
cd 'protoweb-ws_php'Required to enable PSR-4 autoloading for internal libraries in
src/.
composer install
composer dump-autoload --optimizenohup websocketd --address=[::] --port=8080 \
/srv/websocket/protoweb-ws_php/wsl.php ProtoWeb \
> /tmp/error.log 2>&1 &This WebSocket service supports:
- Real-time messaging using WebSocket.
- Lightweight file-based storage with JSON (default).
- Optional SQL database support (incomplete).
- Optional backend integration with CodeIgniter 3.
See the Protoweb if you want SQL integration.
BSD 2-Clause License — see LICENSE