wazo-websocketd is a WebSocket server that delivers Wazo related events to clients.
- Python 3.11
- See requirements.txt
You need Docker installed on your machine.
cd integration_testspip install -r test-requirements.txtmake test-setupmake test
Using artillery
npm install -g artillery- Create scenarios in
benchmark.yml:
config:
target: "wss://<host>:9502?token=<token_id>&version=2"
phases:
- duration: 120
arrivalRate: 8
- pause: 120
ws:
# Ignore SSL certificate errors
# - useful in *development* with self-signed certs
rejectUnauthorized: false
scenarios:
- engine: "ws"
flow:
- think: 5
- send: '{"op": "start"}'
- think: 240
artillery run benchmark.yml
Note: You may need to increase file descriptors of root: /etc/security/limits.d/asterisk.conf