Websocket Chat is a simple websocket implementation in PHP and javascript. The server is entirely written in PHP and it utilizes standard built-in PHP socket functions.
1. You might change host address and port in config.php
2. In terminal type:
php run.php
3. In other terminal window type:
php -S localhost:8000 -t web/
4. Using browser, navigate to http://localhost:8000
The idea of this package is to create simple websocket implementation in PHP
composer require jakubpas/websocket
The API Reference are yet to be added.
The test are yet to be added.
(c) 2015 by Jakub Pas
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.