Example usage for io.vertx.core.http HttpConnection pingHandler

List of usage examples for io.vertx.core.http HttpConnection pingHandler

Introduction

In this page you can find the example usage for io.vertx.core.http HttpConnection pingHandler.

Prototype

@Fluent
HttpConnection pingHandler(@Nullable Handler<Buffer> handler);

Source Link

Document

Set an handler notified when a PING frame is received from the remote endpoint.

Usage

From source file:examples.HTTP2Examples.java

License:Open Source License

public void example24(HttpConnection connection) {
    connection.pingHandler(ping -> {
        System.out.println("Got pinged by remote side");
    });/*w  w  w  .  j  a  v  a 2 s  .  c om*/
}