I’m using gatling to test our product using the websocket api. Things work pretty well with it, and so far we are seeing a lot of good results with Gatling. It’s pretty kickass!
That said, we want to point gatling at an older version of our product that used socket.io v0.9, which used a different heartbeat than ping-pong. It would “ping” with
2::
expecting back an identical2::
as the “pong”.
We’re finding our websocket tests timeout when gatling doesn’t heartbeat back this way. I wanted to add this support in myself (and maybe make a code contribution).
I was looking at how gatling supported ping-pongs in the first place, and I looked through the pr that added the automatic pong reply to ping frames . I’m not quite sure how it’s detecting a “ping” frame (or even how it’s responding “pong”). At this point I’m stumped and must ask: How would I go about modifying wsListener to support this custom heartbeating?
I understand Gatling 3.0 will be shipping with an updated websocket api. Is custom heartbeating (or custom automatic websocket responses) a feature that can be provided in the 3.0 release?
At a minimum, how would I be able to modify gatling to support this specific heartbeating use-case?
Thanks for all of your help!