Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

51 lines (31 loc) · 1.05 KB

Introduction

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