vertx / io.vertx.rxjava.core.http / WebSocket / writePing

# writePing

`open fun writePing(data: Buffer): WebSocketBase`

Writes a ping to the connection. This will be written in a single frame. Ping frames may be at most 125 bytes (octets).

This method should not be used to write application data and should only be used for implementing a keep alive or to ensure the client is still responsive, see RFC 6455 Section 5.5.2.

There is no pingHandler because RFC 6455 section 5.5.2 clearly states that the only response to a ping is a pong with identical contents.

### Parameters

`data` - the data to write, may be at most 125 bytes

Return
a reference to this, so the API can be used fluently