PHPDaemon\SockJS\Application::beginSession PHP Method

beginSession() public method

beginSession
public beginSession ( string $path, string $sessId, string $server ) : object
$path string [@todo description]
$sessId string [@todo description]
$server string [@todo description]
return object
    public function beginSession($path, $sessId, $server)
    {
        $session = new Session($this, $sessId, $server);
        foreach ($this->wss as $wss) {
            if ($session->route = $wss->getRoute($path, $session)) {
                break;
            }
        }
        if (!$session->route) {
            return false;
        }
        $this->sessions->attach($session);
        $session->onHandshake();
        return $session;
    }