/** * Sends a <code>ping</code> frame with the specified payload (if any). * * @param data optional payload. Note that payload length is restricted to 125 bytes or less. * @return {@link Future} which could be used to control/check the sending completion state. */ public Future<Frame> sendPing(byte[] data) { return send(new PingFrame(data)); }
/** * Sends a <code>ping</code> frame with the specified payload (if any). * * @param data optional payload. Note that payload length is restricted to 125 bytes or less. * @return {@link Future} which could be used to control/check the sending completion state. */ public Future<Frame> sendPing(byte[] data) { return send(new PingFrame(data)); }
/** * Sends a <code>ping</code> frame with the specified payload (if any). * <p> * It may seem odd to send a pong frame, however, RFC-6455 states: * "A Pong frame MAY be sent unsolicited. This serves as a * unidirectional heartbeat. A response to an unsolicited Pong frame is * not expected." * * @param data optional payload. Note that payload length is restricted * to 125 bytes or less. * @return {@link Future} which could be used to control/check the sending completion state. */ public Future<Frame> sendPong(byte[] data) { return send(new PongFrame(data)); }
/** * Sends a <code>ping</code> frame with the specified payload (if any). * <p> * It may seem odd to send a pong frame, however, RFC-6455 states: * "A Pong frame MAY be sent unsolicited. This serves as a * unidirectional heartbeat. A response to an unsolicited Pong frame is * not expected." * * @param data optional payload. Note that payload length is restricted * to 125 bytes or less. * @return {@link Future} which could be used to control/check the sending completion state. */ public Future<Frame> sendPong(byte[] data) { return send(new PongFrame(data)); }