modify connect type for socket v3.0