socket.io-php-emitter icon indicating copy to clipboard operation
socket.io-php-emitter copied to clipboard

Full control on the key option and uid added

Open antongorodezkiy opened this issue 9 years ago • 2 comments

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)

antongorodezkiy avatar Dec 15 '15 23:12 antongorodezkiy

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 avatar Nov 01 '16 14:11 flyon

@flyon I'm also using socket.io#/# as the key and default uid.

static::$emitter = new BaseSocketIO\Emitter(Yii::$app->redis, [
    'key' => 'socket.io#/#'
]);

antongorodezkiy avatar Nov 01 '16 15:11 antongorodezkiy