Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miya0001/wp-socketio-emiter
https://github.com/miya0001/wp-socketio-emiter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/miya0001/wp-socketio-emiter
- Owner: miya0001
- Created: 2016-03-27T09:27:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-27T09:56:47.000Z (almost 9 years ago)
- Last Synced: 2024-10-16T01:46:52.103Z (3 months ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WP SocketIO Emiter
[![Build Status](https://travis-ci.org/miya0001/wp-socketio-emiter.svg?branch=master)](https://travis-ci.org/miya0001/wp-socketio-emiter) [![Latest Stable Version](https://poser.pugx.org/miya0001/wp-socketio-emiter/v/stable.svg)](https://packagist.org/packages/miya0001/wp-socketio-emiter) [![Total Downloads](https://poser.pugx.org/miya0001/wp-socketio-emiter/downloads.svg)](https://packagist.org/packages/miya0001/wp-socketio-emiter) [![Latest Unstable Version](https://poser.pugx.org/miya0001/wp-socketio-emiter/v/unstable.svg)](https://packagist.org/packages/miya0001/wp-socketio-emiter) [![License](https://poser.pugx.org/miya0001/wp-socketio-emiter/license.svg)](https://packagist.org/packages/miya0001/wp-socketio-emiter)
## 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' );
```