public static function isSocketType($packet, string $typeName)
    {
        $type = array_search(strtoupper($typeName), static::$socketTypes);

        if ($type === false) {
            return false;
        }

        return static::getSocketType($packet) === $type;
    }
public static function isSocketType($packet, string $typeName)
    {
        $type = array_search(strtoupper($typeName), static::$socketTypes);

        if ($type === false) {
            return false;
        }

        return static::getSocketType($packet) === $type;
    }
public static function isSocketType ( $ packet , string $ typeName ) { $ type = array_search ( strtoupper ( $ typeName ) , static :: $ socketTypes ) ; if ( $ type === false ) { return false ; } return static :: getSocketType ( $ packet ) === $ type ; }
Return if a socket packet belongs to specific type.

@param $packet
@param string $typeName

@return bool
Return if a socket packet belongs to specific type .