@tak-ps/node-tak
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

Node-TAK

Javascript TAK Server Library

Lightweight JavaScript library for managing TAK TLS connections for streaming CoT data

Installation

NPM

To install node-tak with npm run

npm install @tak-ps/node-tak

Usage Examples

Basic Usage

import TAK from '@tak-ps/node-tak';

const tak = await TAK.connect('ConnectionID', new URL('https://tak-server.com:8089'), {
    key: conn.auth.key,
    cert: conn.auth.cert
});

tak.on('cot', async (cot: CoT) => {
    console.error('COT', cot); // See node-cot library
}).on('end', async () => {
    console.error(`Connection End`);
}).on('timeout', async () => {
    console.error(`Connection Timeout`);
}).on('ping', async () => {
    console.error(`TAK Server Ping`);
}).on('error', async (err) => {
    console.error(`Connection Error`);
});

Package Sidebar

Install

npm i @tak-ps/node-tak

Weekly Downloads

189

Version

2.1.2

License

MIT

Unpacked Size

28.9 kB

Total Files

15

Last publish

Collaborators

  • ingalls