Example usage for io.vertx.core.http HttpClient webSocket

List of usage examples for io.vertx.core.http HttpClient webSocket

Introduction

In this page you can find the example usage for io.vertx.core.http HttpClient webSocket.

Prototype

void webSocket(WebSocketConnectOptions options, Handler<AsyncResult<WebSocket>> handler);

Source Link

Document

Connect a WebSocket with the specified options.

Usage

From source file:examples.HTTPExamples.java

License:Open Source License

public void example54(HttpClient client) {
    client.websocket("/some-uri", websocket -> {
        System.out.println("Connected!");
    });/*from   w w w  . ja v a  2 s. c o m*/
}