PHPDaemon\SockJS\Application::attachWss PHP Method

attachWss() public method

attachWss
public attachWss ( Pool $wss ) : boolean
$wss PHPDaemon\Network\Pool
return boolean
    public function attachWss($wss)
    {
        if ($this->wss->contains($wss)) {
            return false;
        }
        $this->wss->attach($wss);
        $wss->bind('customTransport', [$this, 'wsHandler']);
        return true;
    }