public function onReady()
{
$this->redis = \PHPDaemon\Clients\Redis\Pool::getInstance($this->config->redisname->value);
$this->sessions = new ObjectStorage();
$this->wss = new ObjectStorage();
foreach (preg_split('~\\s*;\\s*~', $this->config->wssname->value) as $wssname) {
$this->attachWss(WebSocketPool::getInstance(trim($wssname)));
}
}