0.0.1 • Published 5 years ago

bitwise-proto v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

bitwise-proto

A JS library to build custom bitwise protocol with headers over TCP.

Usage

import Protocol from 'bitwise-proto';
const protocolClient = new Protocol();

protocolClient.connect({
  host: "localhost",
  port:9000,
});


protocolClient.on("open", (server)=>{
  console.log("client connected");

});


protocolClient.on("message", (m)=>{
  protocolClient.send("hi server");
});