intro socketConnection function works