Skip to main content
Next, create the JavaScript consumer application by pasting the following code into a file consumer.js.
Fill in the appropriate <BOOTSTRAP SERVERS> endpoint and <API KEY> in the brokers and sasl.password properties where the client configuration object is created.