handle socket share between repl and updates