Update connect syntax for socket