mcapodacqua / websockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websockets

A small test of websockets using Pusher

Requirements

  • php >= 5.4
  • composer
  • curl or any Http client
  • A Pusher account

Installation

  • Clone this repo
  • Run composer install
  • Copy the .env.example file to .env
  • Fill the .env file with your Pusher account settings

How to use it?

  • Start a php built-in server php -S localhost:8000 server.php
  • Open client.html in your browser
  • Use your Http client to send POSTs to your server, example: curl -X POST localhost:8000 -d message=foo
  • Enjoy it!

About


Languages

Language:HTML 51.5%Language:PHP 48.5%