quangthinh / yii2-sio
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:extension
pkg:composer/quangthinh/yii2-sio
Requires
- npm-asset/socket.io-client: *
- yiisoft/yii2: ^2.0
- yiisoft/yii2-redis: ~2.0.0
This package is not auto-updated.
Last update: 2025-10-26 08:27:38 UTC
README
socket.io emitter
Install
composer require quangthinh/yii2-sio
Add to Component section at config file
        'sio' => [
            'class' => 'quangthinh\yii\sio\Connection',
            'redis' => [
                'class' => 'yii\redis\Connection',
                'hostname' => 'localhost',
                'port' => 6379,
                'database' => 0,
            ],
        ],
Usage
port of socket.io-emitter
Yii::$app->sio
  ->to("ROOM_ID")
  ->emit("EVENT", "MSG", ...)