add getter for socket instance