Update $.socket url. Add $.log for debugging.