Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electra

simple (and thin) message based networking library

a pleiades sister library

Example

Server

const server = new ElectraServer({
  networkingLayer: new TCPNetworkingLayer(),
  port: 8080,
});

Client

const client = new ElectraClient({
  host: "127.0.0.1",
  port: 8080,
  networkingLayer: new TCPNetworkingLayer(),
  autoReconnect: { delayMs: 2000, maxAttempts: 10 },
});

client.send({
  id: "testing:time",
  values: {
    time: `${Date.now()}`,
  },
});

About

simple (and thin) message based networking library

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages