title: Does the Google PubSub Emulator work with the Google Cloud Pub/Sub API Client Library?
body: <p>Our Java app runs on Google App Engine.  It is using Google's PubSub to publish and consume messages.</p>
  
  <p>There are two Java clients for Google PubSub.  The gRPC client is recommended, but as stated at the bottom of this page <a href="https://cloud.google.com/pubsub/grpc-overview" rel="nofollow noreferrer">https://cloud.google.com/pubsub/grpc-overview</a> is not supported on Google App Engine.</p>
  
  <p>The other library is the Google Cloud Pub/Sub API Client - <a href="https://developers.google.com/api-client-library/java/apis/pubsub/v1" rel="nofollow noreferrer">https://developers.google.com/api-client-library/java/apis/pubsub/v1</a></p>
  
  <p>When using the gRPC client lib it was easy to get working with the pubsub emulator.  Just set an environment property and done.</p>
  
  <p>Does the PubSub API client work with the Google PubSub emulator? </p>
  
  <p>Our goal when running our application locally is to be able to use the PubSub emulator instead of connecting to a live instance in the cloud. </p>