Created
May 15, 2017 16:16
-
-
Save deanrad/e32e6a8298f39f35e542cab374a6d5a4 to your computer and use it in GitHub Desktop.
Load Test Meteor with Artillery (http://artillery.io)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! I was wondering why my test websocket requests weren't being handled by the server.