Package io.vertx.rxcore.java.net

Examples of io.vertx.rxcore.java.net.RxNetClient.connect()


    listenObs.subscribe(new Action1<RxNetServer>() {
      @Override
      public void call(RxNetServer rxNs) {
        assertTrue(rxNetServer == rxNs);
        RxNetClient rxNetClient = new RxNetClient(vertx.createNetClient());
        Observable<RxNetSocket> connectObs = rxNetClient.connect(1234);
        connectObs.subscribe(new Action1<RxNetSocket>() {
          @Override
          public void call(RxNetSocket rxNetSocket) {
            rxNetSocket.coreSocket().write("somedata");
            rxNetSocket.asObservable().subscribe(new Action1<Buffer>() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.