socket init code change to use updated socket.io-client