Skip to content

hidrarga/chatbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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