A developer from the node.js pubsub client confirmed that using the client to pull messages from a Cloud Function is not a supported use case.
The alternative is to use the service APIs. However, the REST APIs have their own caveats when attempting to pull all messages from a subscription.