Skip to content

artimora/electra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors