dev-master
9999999-devAn event based long-polling comet server build using asynchronous PHP with React
GPL-2.0
The Requires
by Frode Borli
php websockets long-polling comet
Wallogit.com
2017 © Pedro Peláez
An event based long-polling comet server build using asynchronous PHP with React
A simple to use comet (long-polling) server, serving old-school json and jsonp., (*1)
Download and install composer (skip this step if you have already done this), (*2)
curl -sS https://getcomposer.org/installer | php, (*3)
Add Fubber Comet as a dependency to your project, (*4)
./composer.phar require fubber/comet:dev-master, (*5)
Configure Fubber Comet (read below), (*6)
Start Fubber Comet, (*7)
./vendor/bin/fubber-reactor, (*8)
Create a fubber-reactor.json file in your project root. Add a fubber-comet section where you configure fubber comet according to the following json scheme (pay attention to the database section and http section (put in your own values):, (*9)
```json
{ "apps": { "\Fubber\Comet\Server": { "database": "master" } }, "database": { "master": { "dsn": "mysql:host=localhost;dbname=databasename", "user": "databaseuser", "password": "databasepassword" } }, "http": { "host": "example.com", "port": 80 } } ```, (*10)
An event based long-polling comet server build using asynchronous PHP with React
GPL-2.0
php websockets long-polling comet