ancient-transport-local
v0.0.1
Published
Local transport
Downloads
2
Readme
Ancient Local Transport
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
MIT. Copyright (c) AncientSouls.