Simple MLLP sender for K6
To build a k6
binary with this extension, first ensure you have the prerequisites:
- Go toolchain
- Git
$ go install go.k6.io/xk6/cmd/xk6@latest
$ xk6 build --with github.com/gjergjsheldija/xk6-mllp=.
$ ./k6 run --vus 60 --duration 1m test.js
docker run -i gjergjsheldija/xk6-mllp:latest --vus 60 --duration 1m run - < test.js
import mllp from 'k6/x/mllp';
const client = new mllp.Client({
host: '127.0.0.1',
port: '5000'
});
export default function () {
client.send('./sample.hl7');
}