Skip to content

mstk1000/xk6-websockets-on-interrupt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xk6-websockets

This extension adds a PoC Websockets API implementation to k6.

This is meant to try to implement the specification as close as possible without doing stuff that don't make sense in k6 like:

  1. not reporting errors
  2. not allowing some ports and other security workarounds
  3. supporting Blob as message

It likely in the future will support additional k6 specific features such as:

  1. adding additional tags
  2. support for ping/pong which isn't part of the specification

It is implemented using the xk6 system.

Getting started

  1. Install xk6:
$ go install go.k6.io/xk6/cmd/xk6@latest
  1. Build the binary:
$ xk6 build --with github.com/grafana/xk6-websockets

Discrepancies with the specifications

  • binaryType is "ArrayBuffer" by default instead of "Blob" and will throw an exception if it's tried to be changed as "Blob" is not supported by k6.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%