5.13.0 • Published 7 months ago

@glue42/core v5.13.0

Weekly downloads
374
License
MIT
Repository
-
Last release
7 months ago

Overview

The @glue42/core package is the core Glue42 JavaScript module used in applications for sharing data with other Glue42 enabled applications. It can be used by applications hosted in Glue42, a browser or Node.js.

The @glue42/core package is a subset of the @glue42/desktop package which offers tools for more advanced scenarios that require Window Management, Application Management, Activities, Layouts, Channels, etc.

The @glue42/core package contains the following APIs:

  • Interop - an Interop API which enables applications to:

    • offer functionality to other applications (JavaScript and native) by registering Interop methods;
    • discover Interop methods and applications which offer Interop methods;
    • invoke Interop methods on the user desktop and across the network;
    • stream and subscribe to real-time data using a Streaming API;
  • Shared Contexts - a Shared Contexts API which provides a simple and effective way of sharing data between applications by using shared named data objects;

  • Metrics - use the Glue42 Metrics as a way of assessing the life cycle of a certain process (application performance, business process, employee productivity, etc.) by acquiring, recording and monitoring over time specific data about the key performance indicators of the said process;

  • Pub/Sub - a basic Pub/Sub API that allows apps to publish/subscribe for messages on a specific topic;

Usage

Running in Glue42

import GlueCore from "@glue42/core";

const initializeGlue42 = async () => {
    // You can pass an optional configuration object to the factory function.
    // If you do not privide configuration, it will be inferred from your application configuration file.
    const glue = await GlueCore();

    // Use the Glue42 APIs.
};

// Handle errors.
initializeGlue42().catch(console.error);

Running in Node.js

Note that your Node.js script should be started by the Glue42 Desktop client in order to receive a gwToken and a gwURL.

import GlueCore from "@glue42/core"

const initializeGlue42 = async () => {

    const config = {
        application: "MyNodeApp",
        gateway: {
            protocolVersion: 3,
            ws: process.env.gwURL
        },
        auth: {
            gatewayToken: process.env.gwToken
        }
    };

    const glue = await GlueCore(config);

    // Use the Glue42 APIs.
};

// Handle errors.
initializeGlue42().catch(console.error);
5.13.0

7 months ago

5.11.1

1 year ago

5.11.0

1 year ago

5.12.0

1 year ago

5.10.3

2 years ago

5.10.2

2 years ago

5.10.1

2 years ago

5.10.0

2 years ago

5.9.0

2 years ago

5.8.0

2 years ago

5.7.10

2 years ago

5.7.9

2 years ago

5.7.8

2 years ago

5.7.7

2 years ago

5.7.6

2 years ago

5.7.5

2 years ago

5.7.4

2 years ago

5.7.3

2 years ago

5.7.2

3 years ago

5.7.1

3 years ago

5.7.0

3 years ago

5.6.3

3 years ago

5.6.2

3 years ago

5.6.1

3 years ago

5.6.0

3 years ago

5.5.1

3 years ago

5.5.0

3 years ago

5.4.14

3 years ago

5.4.13

3 years ago

5.4.12

3 years ago

5.4.11

3 years ago

5.4.10

3 years ago

5.4.9

3 years ago

5.4.8

4 years ago

5.4.7

4 years ago

5.4.6

4 years ago

5.4.5

4 years ago

5.4.4

4 years ago

5.4.3

4 years ago

5.4.2

4 years ago

5.4.1

4 years ago

5.4.0

4 years ago

5.3.0

4 years ago

5.2.8-beta.0

4 years ago

5.2.7

4 years ago

5.2.6

4 years ago

5.2.5

4 years ago

5.2.4

4 years ago

5.2.3

4 years ago

5.2.2

4 years ago

5.2.1

4 years ago

5.2.0

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.7

5 years ago

5.0.6

5 years ago

5.0.5

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

4.8.6

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

5.0.0-beta.13

5 years ago

5.0.0-beta.12

5 years ago

5.0.0-beta.11

5 years ago

4.8.5

5 years ago

4.8.4

5 years ago

5.0.0-beta.7

5 years ago

5.0.0-beta.6

5 years ago

5.0.0-beta.4

5 years ago

5.0.0-beta.5

5 years ago

5.0.0-beta.3

5 years ago

4.8.3

5 years ago

4.8.2

5 years ago

4.8.1

5 years ago

4.8.0

5 years ago

4.7.1

5 years ago

5.0.0-beta.2

5 years ago

4.7.0

5 years ago

5.0.0-beta.1

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.6.0-alpha.2

5 years ago

4.6.0-alpha.1

5 years ago

4.5.1-alpha.8

5 years ago

4.5.1-alpha.7

5 years ago

4.5.1-alpha.6

5 years ago

4.5.1-alpha.5

5 years ago

4.5.1-alpha.4

5 years ago

4.5.1-alpha.3

5 years ago

4.5.1-alpha.2

5 years ago

4.5.1-alpha.1

5 years ago

4.5.0

5 years ago

4.5.0-beta.2

5 years ago

4.5.0-beta.1

5 years ago

4.5.0-beta.0

5 years ago

4.5.0-alpha.0

5 years ago

4.4.5

5 years ago

4.4.4

5 years ago

4.4.2

5 years ago

4.4.1

5 years ago