Skip to content

Instantly share code, notes, and snippets.

@k33g
Created May 3, 2018 06:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save k33g/ade4149fa8eeef58c7deed9a4ecab9f5 to your computer and use it in GitHub Desktop.
Save k33g/ade4149fa8eeef58c7deed9a4ecab9f5 to your computer and use it in GitHub Desktop.
RedPipe 1er contact
package garden.bots;
import net.redpipe.engine.core.Server;
import io.vertx.core.json.JsonObject;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
JsonObject config = new JsonObject();
config.put("http_port", 8080);
new Server().start(config, HelloResource.class)
.subscribe(
v -> System.out.println("RedPipe server is started"),
Throwable::printStackTrace
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment