1.6.1 • Published 5 years ago

proteus-js-client v1.6.1

Weekly downloads
149
License
-
Repository
github
Last release
5 years ago

proteus-js-client

proteus-js-client allows Javascript apps to connect to a Proteus broker and access services. By providing a destination name and login credentials, the app becomes a new destination on the network, and can both send and receive messages using the RSocket protocol.

Installation

yarn add proteus-js-client

The Proteus client should be passed a configuration object. Here are its properties:

const config = {
  setup: {
    group: '', // required - group your client will be visible in
    accessKey: 123, // required
    accessToken: 'abc', // required
    keepAlive: 60000, // default value
    lifetime: 360000, // default value
    tags: { // key-value pairs
      destination: 'human-readable name for this destination'
    },
    connectionId: 'seed for md5 hash',
    additionalFlags: {
      public: false // default value
    }
  },
  transport: {
    url: 'the websocket url of your server',
    wsCreator: (url) => { // only required for Node in order to provide a WebSocket object
      return new WebSocket(url);
    },
    connection // TODO: describe
  },
  serializers, // TODO: describe
  responder // TODO: describe
};

const proteusClient = Proteus.create(config);

For more information on how to set up the client, go to docs.netifi.com and click the menu link "Proteus JS Client".

1.6.1

5 years ago

1.6.1-SNAPSHOT-0

5 years ago

1.6.0

5 years ago

1.6.0-SNAPSHOT-9

5 years ago

1.6.0-SNAPSHOT-8

5 years ago

1.6.0-SNAPSHOT-7

5 years ago

1.6.0-SNAPSHOT-6

5 years ago

1.6.0-SNAPSHOT-5

5 years ago

1.6.0-SNAPSHOT-4

5 years ago

1.6.0-SNAPSHOT.3

5 years ago

1.6.0-SNAPSHOT.2

5 years ago

1.6.0-SNAPSHOT.1

5 years ago

1.6.0-SNAPSHOT.0

5 years ago

1.5.3

5 years ago

1.5.0

6 years ago

1.5.0-SNAPSHOT.0

6 years ago

1.5.1-SNAPSHOT.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago