socket.io-php-emitter
socket.io-php-emitter copied to clipboard
Full control on the key option and uid added
Key option: needed for socket.io-redis compatibility, because currently socket.io-redis is using prefix + '#' + namespace + '#'
and prefix + '#' + namespace + '#' + room + '#'
formats of keys.
uid option added to make compatible with socket.io-emitter (1.0.0)
hey @antongorodezkiy this is exactly what I was looking for. Im trying to get this library to work with socket.io-redis. What would you fill in for uid in the options? Im just using the default namespace. So I used socket.io#/# as key
@flyon I'm also using socket.io#/#
as the key and default uid
.
static::$emitter = new BaseSocketIO\Emitter(Yii::$app->redis, [
'key' => 'socket.io#/#'
]);