adding socket.io and client api