vertx / io.vertx.reactivex.core.http / WebSocketFrame / pingFrame

pingFrame

open static fun pingFrame(data: Buffer): WebSocketFrame

Create a ping WebSocket frame. Will be a final frame. There is no option for non final ping frames.

Parameters

data - the bytes for the frame, may be at most 125 bytes

Return
the frame