Skip to content

Instantly share code, notes, and snippets.

@deanrad
Created May 15, 2017 16:16
Show Gist options
  • Save deanrad/e32e6a8298f39f35e542cab374a6d5a4 to your computer and use it in GitHub Desktop.
Save deanrad/e32e6a8298f39f35e542cab374a6d5a4 to your computer and use it in GitHub Desktop.
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
Copy link

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