Contexts
The Solace JavaScript API uses processing contexts for organizing communication between an application and a Solace event broker. Contexts act as containers in which sessions are created and session-related events can be handled.
The Solace JavaScript API and Solace Node.js API APIs are single threaded and have a single global context that is not exposed.
The figure below shows the basic relationship between a context and its dependent processing components.
Overview of Core Concepts