uniqid((strval(mt_rand(0, 1000)))), 'event' => $event, 'data' => $data, 'options' => $options ]; } /** * @param array $message */ public static function publish(array $message) { push_redis_subscribe(RedisSubscribeChan::WEBSOCKET_CHAN, $message); } }