miya0001/wp-socketio-emiter

Installs: 1 037

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:Shell

0.1.0 2016-03-27 09:53 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:36:54 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Getting started

$ composer require miya0001/wp-socketio-emiter

Example

use miya0001\WP;

$io = new SocketIO_Emiter( 'http://example.com/', 3000 );
$io->send( 'broadcast', [ 'name' => 'John', 'message' => 'hello' ] );

With namespace

use miya0001\WP;

$io = new SocketIO_Emiter( 'http://example.com/', 3000 );
$io->send( 'broadcast', [ 'name' => 'John', 'message' => 'hello' ], '/mynamespace' );