Revert "ah the socket is not a function, wonder what the heck it is"

This reverts commit d9e6be0f5959b8b1e89ec22bb6b81c75909dade2.
Revert "trying to correct a null error Will spotted"

This reverts commit 8d2be59d3269b12dfaa49eb034d99e1676585090.