barage

1.0.6 • Public • Published

🍷 Barage

Barage this is tcp server/client fremawork basic syntax and websocket (socket.io) supported package use network project and web project

☁ Install Package

  • Node Init
$ npm init
  • Download barage
$ npm i barage
  • Starter Code
//index.js
const barage = require('barage');

barage.on('data', (data) => {
  package.write(`${data}`); 
});

barage.start(3000, () => {
  barage.websocket(3000, 8080, "localhost", "*",() => {
    console.log("Ws started on port 8080");
  });
  console.log('Server started on port 3000');
});

🐞 Bug Report

Use the isues section to report bugs, you can support the development of the project by sending a report.

Developer ewriq 💙

Package Sidebar

Install

npm i barage

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

7.88 kB

Total Files

6

Last publish

Collaborators

  • ewriq