Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

mrusme/tdrs-node

Repository files navigation

tdrs-node

NPM version Build Status Dependency Status

TDRS Node.js client reference implementation.

Notice: This is only a client implementation. You'll need to run a TDRS link in order to test/use this Node package.

Usage

NPM

In your project directory run:

$ npm install --save tdrs

Source

$ git clone https://github.com/weltraumco/tdrs-node.git
$ cd tdrs-node
$ npm test

Example code

If you clone this repository and build it yourself, you can try out the TDRS Node.js client implementation:

$ npm run SimpleClient

By default, the SimpleClient will try to establish a connection to any of these TDRS links:

    {
        'id': 'one',
        'receiverAddress': 'tcp://localhost:19790',
        'publisherAddress': 'tcp://localhost:19791'
    },
    {
        'id': 'two',
        'receiverAddress': 'tcp://localhost:19890',
        'publisherAddress': 'tcp://localhost:19891'
    },
    {
        'id': 'three',
        'receiverAddress': 'tcp://localhost:19990',
        'publisherAddress': 'tcp://localhost:19991'
    }

Feel free to modify examples/SimpleClient.js for testing purpose.