0.0.13 • Published 6 years ago

teonet-client v0.0.13

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Teonet client node.js module NPM version

Teonet client node.js module used in generator-teonet-client, generator-teonet-client-webkit to connect node.js client applications with Teonet.

Installation

npm install teonet-client

Developer notes

Use before build this package:

sudo apt-get install build-essential

To run projects examples in developer folder use:

npm link teonet-client

Usage

  1. Export module teonetClient = require('teonet-client');

  2. initialize teonetClient.init();

  3. Establish a connection var connector = teonetClient.connectAsync( host_id, // host ip port, // port function(object, error_code) {// select-like method .................... }, function(error_code) { // Connection lost .................... } )

where: error_code is a code of last operartion ( 0 - success otherwise errno ) object: obj.event - event id obj.peer_name - peer name obj.cmd - cmd ??? obj.buffer - binary buffer

0.0.13

6 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago