initialize socket.io