Try adding a full URL to the socket.io import.