Publishing Direct Messages
You can publish Direct messages using the Solace Messaging API for JavaScript to a Solace event broker. Direct messaging allows a client to use a publish and subscribe (pub/sub) messaging model to publish messages.
Direct messages are published to a topic destination and are routed to receiving clients with matching topic subscriptions.
Direct messages differ from Guaranteed messages in that they:
- are not retained for a client when that client is not connected to an event broker.
- can be discarded when congestion or system failures are encountered.
- are not acknowledged upon delivery.
The following figure shows the process of publishing and receiving Direct messages.
Related Event Broker Provisioning and Configuration Information
To allow clients to publish messages to topics (or to only a specific set of topics) within the Message VPN they are connected, they must be assigned ACLs with the appropriate access controls. For information about configuring ACLs on event brokers, see Managing User Access to Self-Managed Event Brokers.