Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Load Test Meteor with Artillery (http://artillery.io)
config:
# target: "ws://localhost:3000/websocket"
target: "wss://deployed-server/websocket"
phases:
-
duration: 60
arrivalRate: 10
ws:
# Ignore SSL certificate errors
# - useful in *development* with self-signed certs
rejectUnauthorized: false
scenarios:
-
engine: "ws"
flow:
# Key! This first line establishes the DDP connection per the spec
# https://github.com/meteor/meteor/blob/devel/packages/ddp/DDP.md
-
send: '{"msg":"connect","version":"1","support":["1","pre2","pre1"]}'
# Now make method calls, or login
-
send: '{"msg":"method","method":"your-method","params":[1,2,3], "id": "314"}'
@4815162342

This comment has been minimized.

Copy link

4815162342 commented Oct 26, 2017

Thanks! I was wondering why my test websocket requests weren't being handled by the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.