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

Emit `error` and `error_code`

Open mstoykov opened this issue 3 years ago • 0 comments

Connected issue for the original k6 api:

Currently, if an error (like timeout) happens during the creation of the websocket, k6 will not emit status=0 or tags error and error_code as the HTTP module, but will just no emit the status tag, call the error handle if defined and end continue executing javascript.

This will require for the error_code code to be made exported and possibly moved to a different module, which will impact https://github.com/grafana/k6/pull/2008, so we might want to merge that first.

mstoykov avatar Jul 21 '22 07:07 mstoykov