protected function getSessionIdFromCookie(Connection $connection)
    {
        $cookie = urldecode($connection->WebSocket->request->getCookie(config('session.cookie')));
        
        return $cookie ? Crypt::decrypt($cookie) : null;
    }
protected function getSessionIdFromCookie(Connection $connection)
    {
        $cookie = urldecode($connection->WebSocket->request->getCookie(config('session.cookie')));
        
        return $cookie ? Crypt::decrypt($cookie) : null;
    }
protected function getSessionIdFromCookie ( Connection $ connection ) { $ cookie = urldecode ( $ connection -> WebSocket -> request -> getCookie ( config ( 'session.cookie' ) ) ) ; return $ cookie ? Crypt :: decrypt ( $ cookie ) : null ; }
Get the Session ID from the Cookie.

@param \Ratchet\ConnectionInterface $connection
@return string
Get the Session ID from the Cookie .