You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, guys. Thanks for the great async web socket package.
I have only one issue with that.
After closing the connection to the socket in the k6 test with ws.close()
or interrupting the k6 test (after establishing a connection and sending a few messages), the server I'm testing receives all the messages sent during that connection again.
import{WebSocket}from'k6/experimental/websockets';constws=newWebSocket(url);ws.onopen=()=>{ws.send(JSON.stringify({msg: 'message 1'}));// Server receives message 1sleep(1);ws.send(JSON.stringify({msg: 'message 2'}));// Server receives message 2sleep(1);ws.close();// Server receives message 1 and message 2 again: 4 in total (only 2 messages showed in k6 output test metrics)};
Will be grateful for any help, thanks.
The text was updated successfully, but these errors were encountered:
Hey, guys. Thanks for the great async web socket package.
I have only one issue with that.
After closing the connection to the socket in the k6 test with
ws.close()
or interrupting the k6 test (after establishing a connection and sending a few messages), the server I'm testing receives all the messages sent during that connection again.
Will be grateful for any help, thanks.
The text was updated successfully, but these errors were encountered: