PHPDaemon\Clients\Asterisk\Connection::onReady PHP Method

onReady() public method

Called when the connection is handshaked (at low-level), and peer is ready to recv. data
public onReady ( ) : void
return void
    public function onReady()
    {
        if ($this->url === null) {
            return;
        }
        if ($this->connected && !$this->busy) {
            $this->pool->servConnFree[$this->url]->attach($this);
        }
        $url = parse_url($this->url);
        $this->username = $url['user'];
        $this->secret = $url['pass'];
    }