Skip to content

msilva88-dev/protoweb-ws_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtoWeb Dynamic Chat — WebSocket Service

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.


📦 Install

Recommended install location: /srv/websocket/ or /var/www/websocket/
Do not install in /etc/websocket/, which is for configuration only.

1. Clone this source code

cd '/srv/websocket/' # or '/var/www/websocket/'
git clone 'https://github.com/msilva88-dev/protoweb-ws_php.git'
cd 'protoweb-ws_php'

2. Generate the vendor/ directory

Required to enable PSR-4 autoloading for internal libraries in src/.

composer install
composer dump-autoload --optimize

3. Run the WebSocket service

nohup websocketd --address=[::] --port=8080 \
    /srv/websocket/protoweb-ws_php/wsl.php ProtoWeb \
    > /tmp/error.log 2>&1 &

🧾 Description

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.


⚖ License

BSD 2-Clause License — see LICENSE

About

ProtoWeb (Websocket Service in PHP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages