All Projects → SolaceSamples → solace-samples-javascript

SolaceSamples / solace-samples-javascript

Licence: Apache-2.0 license
Getting Started Samples for the Solace JavaScript API.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to solace-samples-javascript

solace-samples-rest-messaging
Tutorials show how to use the Solace REST Messaging API
Stars: ✭ 23 (-11.54%)
Mutual labels:  solace, solace-samples
solace-samples-dotnet
Getting Started Samples for the Solace .NET API
Stars: ✭ 30 (+15.38%)
Mutual labels:  solace, solace-samples
solace-samples-mqtt
Getting Started Samples for using MQTT with Solace Message Routers.
Stars: ✭ 28 (+7.69%)
Mutual labels:  solace, solace-samples
solace-samples-cloudfoundry-java
Samples showing how to connect and exchange messages with Solace Messaging for Pivotal Cloud Foundry.
Stars: ✭ 29 (+11.54%)
Mutual labels:  solace, solace-samples
solace-samples-jms
Getting Started Samples for the Solace JMS API.
Stars: ✭ 31 (+19.23%)
Mutual labels:  solace, solace-samples
solace-samples-openmama
Tutorials for the Solace Transport Bridge of OpenMAMA
Stars: ✭ 19 (-26.92%)
Mutual labels:  solace, solace-samples
solace-integration-guides
solacelabs.github.io/solace-integration-guides/
Stars: ✭ 12 (-53.85%)
Mutual labels:  solace
covid19-stream-processors
Stream Information & Example Applications for Processing JHU and CovidTracking.com COVID-19 data available as streams over Solace
Stars: ✭ 35 (+34.62%)
Mutual labels:  solace
solace-java-spring-boot
A Spring Boot auto-configuration and starter for the Solace Java API.
Stars: ✭ 18 (-30.77%)
Mutual labels:  solace

Getting Started Examples

Solace JavaScript API

The "Getting Started" tutorials will get you up to speed and sending messages with Solace technology as quickly as possible. There are three ways you can get started:

  • Follow these instructions to quickly spin up a cloud-based Solace messaging service for your applications.
  • Follow these instructions to start the Solace PubSub+ software event broker in leading Clouds, Container Platforms or Hypervisors. The tutorials outline where to download and how to install the Solace PubSub+ software event broker.
  • If your company has Solace PubSub+ Event Brokers deployed, contact your middleware team to obtain the host name or IP address of a Solace PubSub+ Event Broker to test against, a username and password to access it, and a VPN in which you can produce and consume messages.

Contents

This repository contains:

  • Code and matching tutorial walk throughs for five different basic Solace messaging patterns. For a nice introduction to the Solace API and associated tutorials, check out the tutorials home page.

    See the individual tutorials for details:

    • Publish/Subscribe: Learn how to set up pub/sub messaging on a Solace PubSub+ software event broker.
    • Persistence: Learn how to set up persistence for guaranteed delivery.
    • Request/Reply: Learn how to set up request/reply messaging.
    • Confirmed Delivery: Learn how to confirm that your messages are received by a Solace PubSub+ Event Broker.
    • Topic to Queue Mapping: Learn how to map existing topics to Solace queues.
  • The following additional samples showing how to make use of advanced features of the Solace PubSub+ Event Broker.

    • Secure Session: Learn how to use secure connection to the server and server and client certificate authentication.
    • Active Consumer Indication: Learn how multiple consumers can bind to an exclusive queue, but only one client at a time can actively receive messages.
    • Durable Topic Endpoint Consumer: Learn how to consume messages from a Durable Topic Endpoint (DTE).
    • Event Monitor: Learn how to monitor message router generated events.
    • GuaranteedRequestor/Replier: Learn how to set up guaranteed request/reply messaging.
    • NoLocal Pub-Sub: Learn how to prevent messages published on a session or consumer received on that same session or consumer.
    • Message Replay: Learn how to initiate and process the replay of previously published messages, as well as deal with an externally initiated replay.

Checking out

To check out the project, clone this GitHub repository:

git clone https://github.com/SolaceSamples/solace-samples-javascript
cd solace-samples-javascript

Note: the code in the master branch of this repository depends on Solace JavaScript API version 10 or later. If you want to work with an older version clone the branch that corresponds your version.

Download the Solace JavaScript API

These samples depend on version 10 or later of the Solace JavaScript API library.

The Solace JavaScript API library can be downloaded here. The instructions in this tutorial assume you have downloaded the Web Messaging API for JavaScript library and unpacked it to a known location. The samples assume a lib directory containing the API libraries will be installed in the current solace-samples-javascript directory at the root of the cloned repo:

cp -R <path_to_unzipped_API_distribution_package>/lib .

Running the Samples

The samples are found in the src/basic-samples and src/features directories. Each sample is in it's own subdirectory. Within each sample subdirectory there is an html file which you load to launch the sample.

For example the TopicPublisher is found here: src/basic-samples/TopicPublisher

And it is launched by running the following in your browser:

TopicPublisher.html

See the tutorials for more details.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the Apache License, Version 2.0. - See the LICENSE file for details.

Resources

For more information try these resources:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].