Skip to content

Commit 3db053c

Browse files
authored
Merge branch 'main' into dynamic-extension-docs
2 parents c282a48 + 3fccd9f commit 3db053c

File tree

129 files changed

+2189
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2189
-136
lines changed

.github/zizmor.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This is also used as the default configuration for the Zizmor reusable
2+
# workflow.
3+
4+
rules:
5+
unpinned-uses:
6+
config:
7+
policies:
8+
actions/*: any # trust GitHub
9+
grafana/*: any # trust Grafana

docs/sources/k6/next/javascript-api/k6-ws/connect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ weight: 10
1111

1212
Initiate a WebSocket connection to a remote host.
1313

14-
Calling connect will block the VU finalization until the WebSocket connection is closed. Instead of continuously looping the main function (`export default function() { ... }`) over an over, each VU will be halted listening to async events and executing their event handlers until the connection is closed.
14+
Calling connect will block the VU finalization until the WebSocket connection is closed. Instead of continuously looping the main function (`export default function () { ... }`) over an over, each VU will be halted listening to async events and executing their event handlers until the connection is closed.
1515

1616
The following events can close the connection:
1717

@@ -21,7 +21,7 @@ The following events can close the connection:
2121

2222
| Parameter | Type | Description |
2323
| --------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
24-
| url | string | Request URL (e.g. "ws://echo.websocket.org"). |
24+
| url | string | Request URL (e.g. "wss://echo.websocket.org"). |
2525
| params | object | [Params](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-ws/params) object containing additional request parameters. |
2626
| callback | function | The callback function that will be called when the WebSocket connection is initiated. A [Socket](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-ws/socket) object will be passed to the function, and this object can be used to set up callbacks etc when things happen on the WebSocket connection |
2727

@@ -39,7 +39,7 @@ The following events can close the connection:
3939
import ws from 'k6/ws';
4040

4141
export default function () {
42-
const url = 'ws://echo.websocket.org';
42+
const url = 'wss://echo.websocket.org';
4343
const resp = ws.connect(url, null, function (socket) {
4444
socket.on('open', function () {
4545
console.log('WebSocket connection established!');

docs/sources/k6/next/javascript-api/k6-ws/params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _A k6 script that will make a WebSocket request with a custom header and tag res
2828
import ws from 'k6/ws';
2929

3030
export default function () {
31-
const url = 'ws://echo.websocket.org';
31+
const url = 'wss://echo.websocket.org';
3232
const params = {
3333
headers: { 'X-MyHeader': 'k6test' },
3434
tags: { k6test: 'yes' },

docs/sources/k6/next/javascript-api/k6-ws/socket/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import ws from 'k6/ws';
3737
import { check } from 'k6';
3838

3939
export default function () {
40-
const url = 'ws://echo.websocket.org';
40+
const url = 'wss://echo.websocket.org';
4141
const params = { tags: { my_tag: 'hello' } };
4242

4343
const response = ws.connect(url, params, function (socket) {

docs/sources/k6/next/javascript-api/k6-ws/socket/socket-close.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Close the WebSocket connection.
2121
import ws from 'k6/ws';
2222

2323
export default function () {
24-
const url = 'ws://echo.websocket.org';
24+
const url = 'wss://echo.websocket.org';
2525
const response = ws.connect(url, null, function (socket) {
2626
socket.on('open', function () {
2727
socket.close();

docs/sources/k6/next/javascript-api/k6-ws/socket/socket-on.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import ws from 'k6/ws';
3232
import { check } from 'k6';
3333

3434
export default function () {
35-
const url = 'ws://echo.websocket.org';
35+
const url = 'wss://echo.websocket.org';
3636
const params = { tags: { my_tag: 'hello' } };
3737

3838
const response = ws.connect(url, params, function (socket) {

docs/sources/k6/next/javascript-api/k6-ws/socket/socket-ping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Send a ping. Ping messages can be used to verify that the remote endpoint is res
1717
import ws from 'k6/ws';
1818

1919
export default function () {
20-
const url = 'ws://echo.websocket.org';
20+
const url = 'wss://echo.websocket.org';
2121
const response = ws.connect(url, null, function (socket) {
2222
socket.on('open', function () {
2323
socket.on('pong', function () {

docs/sources/k6/next/javascript-api/k6-ws/socket/socket-send.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can use `JSON.stringify` to convert a JSON or JavaScript values to a JSON st
2222
import ws from 'k6/ws';
2323

2424
export default function () {
25-
const url = 'ws://echo.websocket.org';
25+
const url = 'wss://echo.websocket.org';
2626
const response = ws.connect(url, null, function (socket) {
2727
socket.on('open', function () {
2828
socket.send('my-message');

docs/sources/k6/next/javascript-api/k6-ws/socket/socket-setinterval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import ws from 'k6/ws';
2323
import { check } from 'k6';
2424

2525
export default function () {
26-
const url = 'ws://echo.websocket.org';
26+
const url = 'wss://echo.websocket.org';
2727
const params = { tags: { my_tag: 'hello' } };
2828

2929
const res = ws.connect(url, params, function (socket) {

docs/sources/k6/next/javascript-api/k6-ws/socket/socket-settimeout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { sleep } from 'k6';
2424

2525
export default function () {
2626
console.log('T0: Script started');
27-
const url = 'ws://echo.websocket.org';
27+
const url = 'wss://echo.websocket.org';
2828
const response = ws.connect(url, null, function (socket) {
2929
console.log('T0: Entered WebSockets run loop');
3030
socket.setTimeout(function () {

0 commit comments

Comments
 (0)