hidrarga / chatbox
A small chat using websockets
1.3.2
2016-10-30 05:09 UTC
Requires
- cboden/ratchet: 0.3.*
This package is not auto-updated.
Last update: 2025-08-30 21:51:56 UTC
README
ChatBox is a small chat service using websockets.
The php server use Ratchet.
The javascript client use jQuery, Bootstrap, web-socket-js (for compatibility with old browsers and smartphones) and webL10n
Installation
All you need to do is running bower and composer.
bower update
composer update
If you don't have bower installed, run:
npm install -g bower
If you don't have composer installed, run:
curl -sS https://getcomposer.org/installer | php
Usage
Run the server:
php bin/server.php
Configuration
Server
You can decide to disable logs by setting LOGGING
off in src/ChatBox/Chat.php
.
You can change the number of message stored in the log file by editing LENGTH
in src/ChatBox/Logger.php
.
Client
Don't forget to change the hostname and the location of WebSocketMain.swf in js/chat.js