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