Implemented get socket id