The containing class is available as Network\Socket in the www repository.
Network\Socket
Returns the address of the remote side of the socket
public function getPeerAddress(): this::TAddress;
this::TAddress