You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [shakahl/socket.io-emitter](https://github.com/shakahl/socket.io-emitter) is forked from [exls/socket.io-emitter](https://github.com/exls/socket.io-emitter) created by Anton Pavlov.
90
+
$client = new \Redis();
91
+
$client->connect('127.0.0.1');
92
+
93
+
(new Emitter($client))
94
+
->in(['room1', 'room2'])
95
+
->except(['room3'])
96
+
->socketsJoin('room4');
97
+
98
+
(new Emitter($client))
99
+
->in(['room4'])
100
+
->socketsLeave('room3');
101
+
102
+
(new Emitter($client))
103
+
->in(['room1'])
104
+
->disconnectSockets();
105
+
106
+
(new Emitter($client))
107
+
->of('/tasks')
108
+
->serverSideEmit('taskDone', 1);
109
+
```
110
+
111
+
## Credits
76
112
113
+
[Watch all forks](https://github.com/RuslanMelnychenko/socket.io-php-emitter/network/members)
0 commit comments