Examples of connectWebsocket()


Examples of org.vertx.java.core.http.HttpClient.connectWebsocket()

  public void startClient() {

      HttpClient client = vertx.createHttpClient().setPort(80).setHost(MTGOX_HOST_NAME);

      client.connectWebsocket("/mtgox", new Handler<WebSocket>() {
        @Override
        public void handle(final WebSocket ws) {
          LOGGER.info("Connected to: " + MTGOX_HOST_NAME);

          ws.writeBuffer(new Buffer("{\"op\":\"unsubscribe\",\"channel\":\"" + MTGOX_TICKER_CHANNEL + "\"}"));
View Full Code Here

Examples of org.vertx.java.core.http.HttpClient.connectWebsocket()

  @Override
  public void start() throws Exception {

    HttpClient client = vertx.createHttpClient().setPort(80).setHost(MTGOX_HOST_NAME);

    client.connectWebsocket("/mtgox", new Handler<WebSocket>() {
      @Override
        public void handle(final WebSocket ws) {
        container.getLogger().info("Connected to: " + MTGOX_HOST_NAME);

        ws.writeBuffer(new Buffer("{\"op\":\"unsubscribe\",\"channel\":\"" + MTGOX_TICKER_CHANNEL + "\"}"));
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.