2017 © Pedro Peláez
 

extension yii2-sio

image

quangthinh/yii2-sio

  • Sunday, August 6, 2017
  • by tut4ever
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 30 % Grown

The README.md

yii2-sio

socket.io emitter, (*1)

Install

composer require quangthinh/yii2-sio

Add to Component section at config file, (*2)

        'sio' => [
            'class' => 'quangthinh\yii\sio\Connection',
            'redis' => [
                'class' => 'yii\redis\Connection',
                'hostname' => 'localhost',
                'port' => 6379,
                'database' => 0,
            ],
        ],

Usage

port of socket.io-emitter, (*3)

Yii::$app->sio
  ->to("ROOM_ID")
  ->emit("EVENT", "MSG", ...)

The Versions

06/08 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by quangthinh

25/05 2017

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by quangthinh