initial working socket connection with node