use of org.nustaq.kontraktor.routers.Krouter in project kontraktor by RuedigerMoeller.
the class DummyService method main.
public static void main(String[] args) {
DummyService serv = Actors.AsActor(DummyService.class);
serv.init();
Krouter krouter = (Krouter) Routing.registerService(new WebSocketConnectable().url("ws://localhost:8888/binary").actorClass(Krouter.class).serType(SerializerType.FSTSer), serv, x -> {
System.out.println("discon " + x);
System.exit(-1);
}, true).await();
Log.Info(DummyService.class, "service registered at krouter");
}
Aggregations