pub async fn collect_string_from_socket_helper( socket: Socket, compressed_debug_data: bool, ) -> Result<String, Error>
Collect bytes from the socket, decompress if required and return the string