JavaScript API

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

Message Exchange Patterns

The JavaScript Messaging API supports all common message exchange patterns.

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

Features

The JavaScript API supports:

  • Connection management to Solace PubSub+ message 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
  • SolCache 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+ message brokers already deployed, obtain the hostname, or IP address, of a message 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 message 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.