JavaScript API

The Solace JavaScript Messaging API allows web browsers and mobile client applications to send and receive messages with a Solace PubSub+ event broker.

Message Exchange Patterns

The JavaScript Messaging API supports all common message exchange patterns.

  • Publish / Subscribe
  • Point-to-Point
  • Request / Reply


The JavaScript API supports:

  • Connection management to Solace PubSub+ event brokers
  • Addition and removal of topic subscriptions
  • Sending and receiving Direct and Guaranteed messages
  • Structured data types that allow interoperability between various architectures and programming languages
  • Request / Reply messaging support
  • PubSub+ Cache Client API support
  • Message Replay

The JavaScript API doesn't support:

  • Session Transactions and XA Transactions
  • Queue browsing
  • Provisioning of durable endpoints
  • Topic dispatch
  • Message compression
  • Kerberos authentication
  • Use of Selectors

Get Started

Tutorials are provided to help you quickly get up-to-speed developing applications using Solace Messaging JavaScript APIs for messaging. There are three ways you can begin:

  1. If you have Solace PubSub+ event brokers already deployed, obtain the hostname, or IP address, of an event broker to test against, a username and password to access it, and a Message VPN in which you can produce and consume messages.
  2. You can go through an Initial Set Up of a software event broker.
  3. You can spin up Solace PubSub+ Cloud.

Start Tutorials

JavaScript API Reference

Click below to access the API reference for the Solace JavaScript API.