ancient-transport-local

0.0.1 • Public • Published

Ancient Local Transport

npm Build Status Codacy Badge Codacy Coverage Badge

Create a channel that is connected locally. Perfect for testing.

Installation

Official method:

npm install --save ancient-transport-local

Using:

/* Connect clients */
import { client_1, client_2 } from 'ancient-transport-local';

/* Override function receiving packets */
client_1.gotPackage = function (data, channel) {
    console.info(`Channel #1: ${data}`);
};

client_2.gotPackage = function (data, channel) {
    console.info(`Channel #2: ${data}`);
};

// Use it!

License

JavaScript Style Guide

MIT. Copyright (c) AncientSouls.

/ancient-transport-local/

    Package Sidebar

    Install

    npm i ancient-transport-local

    Weekly Downloads

    4

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • ivansglazunov
    • valentineus