changed the client connection to socke.io