# Websocket Check

**URL:** <https://community.gatling.io/t/websocket-check/2124>\
**Category:** Gatling (Open-Source)\
**Created:** [March 19, 2015, 4:54pm UTC](https://community.gatling.io/t/websocket-check/2124 "2015-03-19T16:54:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamie](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jamie](https://community.gatling.io/u/Jamie)\
**Post date:** [March 19, 2015, 4:54pm UTC](https://community.gatling.io/t/websocket-check/2124/1 "2015-03-19T16:54:44Z")

</div>

Hi,

I have the following script:

.group(“UserConnecting”){  
exec(ws(“OpenConnection”).open("/uname=${currentUser}")  
.check(wsAwait.within(30).until(1).regex("""{._“messageType”:“presenceCountIncrement”,“username”:"${currentUser}"._}"""))).exitHereIfFailed  
}

I got the attached result and when looking at the response time of OpenConnection it is always less than 1 sec However the duration of UserConnecting exceeds 60 sec and my limit is of only 30 sec. Can someone explain how is this possible and if the check is actually being considered in the result?

Thank you.

Jamie

[SampleB1R1MEAN.zip](https://community.gatling.io/uploads/short-url/sKKcP8RNTNS5dRVJ2qEUtXZdRxq.zip) (507 KB)
