PHPDaemon\SockJS\Application::onReady PHP Method

onReady() public method

Called when the worker is ready to go
public onReady ( ) : void
return void
    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)));
        }
    }