how to accumulate many messages via websocket

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 …