# WebSocket check not only first message

**URL:** <https://community.gatling.io/t/websocket-check-not-only-first-message/4651>\
**Category:** Gatling (Open-Source)\
**Created:** [November 16, 2018, 6:05am UTC](https://community.gatling.io/t/websocket-check-not-only-first-message/4651 "2018-11-16T06:05:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oluszla](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@Oluszla](https://community.gatling.io/u/Oluszla)\
**Post date:** [November 16, 2018, 6:05am UTC](https://community.gatling.io/t/websocket-check-not-only-first-message/4651/1 "2018-11-16T06:05:36Z")

</div>

Hi,  
I have chain:

`  
exec(ws(“auth”).sendText(“some auth text”).await(10 seconds)(ws.checkTextMessage(“auth check”).check(regex("._true._"))))

`

But server sends me not only response. It sends some regular messages, and sometimes regular message is received between sending auth message and receiving auth message response. In that case check is failed:

`05:11:11.983 [DEBUG] i.g.h.a.w.f.WsActor - Received matching message "regular message" 05:11:11.985 [DEBUG] i.g.h.a.w.f.WsActor - Check failure 05:11:11.987 [DEBUG] i.g.h.a.w.f.WsActor - Check failed, performing next action`

Check worked in Gatling 2.3.1, but in Gatling 3.0.0 it doesn’t work.

Is there any way to check all message until timeout?
