A small test of websockets using Pusher
- php >= 5.4
- composer
- curl or any Http client
- A Pusher account
- Clone this repo
- Run
composer install
- Copy the
.env.example
file to.env
- Fill the
.env
file with your Pusher account settings
- Start a php built-in server
php -S localhost:8000 server.php
- Open
client.html
in your browser - Use your Http client to send
POST
s to your server, example:curl -X POST localhost:8000 -d message=foo
- Enjoy it!