connected server and client via socket.io