add socket() method in namespace

socket() is the API to search for client.

I want the API to be notified only to someone.