A test client for sending and receiving JSON format messages with Azure Service Bus
Node v20+
Or:
Docker
- Clone the repo and run
npm install
to install required npm packages - Update the preferred port in the
config.js
file. By default this is set to 3011. - Run
npm start
to start the application.
The application can be run in a container if preferred by running the scripts/start
script.
docker run -p 3011:3011 johnwatson484/azure-service-bus-test-client
A hosted version is available at https://asbtc.lynxmagnus.com/
The below screenshot shows an overview of the the client.
This can be found in the Azure portal under Shared Access Policies for either the root account or a specific queue key.
This must be in the below format and note that the validation provided by the client is case sensitive. For example "endpoint=..." would be invalid. EntityPath is optional as it only applies to queue policies.
Endpoint=sb://YOUR_HOSTNAME/;SharedAccessKeyName=KEYNAME;SharedAccessKey=KEY
This is the queue or topic where the message will be sent to or received from.
This is the message that will be sent to the specified resource and must be in JSON format.
Any ##
placeholders will be replaced by an auto incrementing integer.
Messages can be sent as JSON or stringified JSON.
If messages are to be received from a topic, then set the subscription name.
Peeked messages remain on the queue, whilst completed messages are removed.
If invalid credentials or malformed JSON is provided an error will be returned through the client.