add connection for socket