Skip to content

renatofmachado/volt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meet Volt

Introduction

Volt is an asynchronous event-driven network package that allows you to quickly set up servers and clients. Core features include:

  • Simple to install and use.
  • Abstracts the user from most network concepts.
  • Expressive and elegant syntax.
  • Easily expandable.
  • Routing and middleware.

Currently Volt is under heavy development, therefore it might undergo some changes during this process.

"Hello Volt"

public void main(String[] args) {
  Server server = Volt.server("udp", 30600);
  
  server.listen(":hello", (request) -> {
    System.out.println("Received message: " + request.message());
  });
  
  Client client = Volt.client("udp");
  
  client.every(3).send(":hello", "all:30600", "Hello Volt.")
        .after(10).stop();
}

Contributing

If you happen to find an error, or you might be thinking about a general improvement to the project, please do create an Issue, or consider creating a Pull Request. All contributions are appreciated.

About

Simple asynchronous event-driven network package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages