barage
v1.0.6
Published
Full stack tcp controller (server/client) mirrorable websocket refers to the appreciated syntax in creating tcp server
Downloads
14
Maintainers
Readme
🍷 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 💙