Download the PHP package phuongdev89/yii2-socketio without Composer
On this page you can find all versions of the php package phuongdev89/yii2-socketio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phuongdev89/yii2-socketio
More information about phuongdev89/yii2-socketio
Files in phuongdev89/yii2-socketio
Package yii2-socketio
Short Description The simple and powerful socketio for the Yii2 framework
License MIT
Informations about the package yii2-socketio
Socket.io Yii extension
Use all power of socket.io in your Yii 2 project.
Install
Install nodejs (tested with node 18)
Add to composer.json
Config
Console config (simple fork)
Start sockeio server
Stop sockeio server
Common config
Usage
Publisher
Create publisher from server to client
On client using socketio to receive data from server
Using to broadcast data to client
Receiver
Create receiver from client to server
On client using socketio to emit data to server
Receiver with checking from client to server
You can have publisher and receiver in one event. If you need check data from client to server you should use:
- EventPolicyInterface
Subscribe room
Socket.io has room function. If you need it, you should implement EventRoomInterface
Subscribe room with event
You should use trait ListenTrait
On client using socketio to join the room, and listen data
Using to broadcast data to client on the room
All versions of yii2-socketio with dependencies
yiisoft/yii2 Version 2.*
phuong17889/yii2-cron Version *
phuong17889/yii2-base Version *
symfony/process Version ~3.0|~4.0
predis/predis Version ~1.1.0