Added the socket agent class for making a reference from the portal class.