Update socket URL to use env