* Verify the connection is alive.
*/
static final int MSG_PING = 5;
+ /**
+ * Verify the connection is alive.
+ */
+ static final int MSG_PONG = 6;
/**
* Length of the length field in each transmitted frame.
static final ByteBuf PING = Unpooled.unreleasableBuffer(
Unpooled.wrappedBuffer(new byte[] { MSG_PING }));
+ static final ByteBuf PONG = Unpooled.unreleasableBuffer(
+ Unpooled.wrappedBuffer(new byte[] { MSG_PONG }));
+
private Constants() {
// Hidden on purpose
}