xk6-websockets icon indicating copy to clipboard operation
xk6-websockets copied to clipboard

Add ability to `ping` send Application data

Open olegbespalov opened this issue 2 years ago • 0 comments

What?

Add the possibility of sending application data with WebSocket.ping.

The WebSocker protocol says:

[5.5.2](https://www.rfc-editor.org/rfc/rfc6455#section-5.5.2).  Ping

   The Ping frame contains an opcode of 0x9.

   A Ping frame MAY include "Application data".

Why?

  • https://www.rfc-editor.org/rfc/rfc6455#section-5.5.2
  • https://community.k6.io/t/is-it-possible-to-send-data-with-ping-messages/7009

olegbespalov avatar Jun 16 '23 12:06 olegbespalov