Barage this is tcp server/client fremawork basic syntax and websocket (socket.io) supported package use network project and web project
- 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');
});
Use the isues section to report bugs, you can support the development of the project by sending a report.
Developer ewriq 💙