No results for

Powered byAlgolia
⚠️ This is archived documentation for v0.40. Go to the latest version


Experimental module, use at your own risk

While we intend to keep this module as simple and stable as possible, we may need to add features or introduce breaking changes. This could happen at any time until we release this module as stable.

Feel free to provide user feedback, and open an issue or pull request if you have any suggestions.

This experimental API implements the browser's WebSocket API.

With some caveats:

  • The binaryType is by default ArrayBuffer and setting it panics as k6 does not support Blob.
WebSocketConstructs a new WebSocket connection