Azure / azure-relay-node

☁️Node.js library for Azure Relay Hybrid Connections
https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-what-is-it
MIT License
12 stars 14 forks source link

Broadcast message to all listeners on Azure Relay instead of just one. #53

Open AbdulHannan96 opened 4 years ago

AbdulHannan96 commented 4 years ago

Actual Behavior

  1. Message received by only one listener at random

Expected Behavior

  1. Message should be sent to all listeners.

Versions

SaadbinWaheed commented 4 years ago

Same issue

dlstucki commented 4 years ago

This is by design. In the HybridConnection Protocol documentation it states:

For Hybrid Connections, if there are two or more active listeners, incoming connections are balanced across them in random order; fair distribution is attempted with best effort.

SaadbinWaheed commented 4 years ago

In my implementation too, I need to send the message to all currently attached listeners. How can I achieve that?