# how to accumulate many messages via websocket

**URL:** <https://community.gatling.io/t/how-to-accumulate-many-messages-via-websocket/6028>\
**Category:** Gatling (Open-Source)\
**Created:** [March 19, 2021, 6:04pm UTC](https://community.gatling.io/t/how-to-accumulate-many-messages-via-websocket/6028 "2021-03-19T18:04:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudh\_Vyas](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Anirudh\_Vyas](https://community.gatling.io/u/Anirudh_Vyas)\
**Post date:** [March 19, 2021, 6:04pm UTC](https://community.gatling.io/t/how-to-accumulate-many-messages-via-websocket/6028/1 "2021-03-19T18:04:36Z")

</div>

Hi

I am attempting to send a message via websocket and then accumulate all the messages that come through until one that completes, can I do that?

I am able to send a message, wait for some time and run a check on message arriving looking for a particular one with some json property, however I’d like to be able to do that for any message arriving.

Sorry a newbie to gatling trying to learn stuff at the moment, please do let me know …
