Skip to content
/ barage Public

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

License

Notifications You must be signed in to change notification settings

ewriq/barage

Repository files navigation

🍷 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 💙

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages