# Secured websockets in gatling?

**URL:** <https://community.gatling.io/t/secured-websockets-in-gatling/4923>\
**Category:** Gatling (Open-Source)\
**Created:** [April 8, 2019, 12:17pm UTC](https://community.gatling.io/t/secured-websockets-in-gatling/4923 "2019-04-08T12:17:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user3](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@user3](https://community.gatling.io/u/user3)\
**Post date:** [April 8, 2019, 12:17pm UTC](https://community.gatling.io/t/secured-websockets-in-gatling/4923/1 "2019-04-08T12:17:32Z")

</div>

Hi all,

Are secured websockets supported in gatling I’m trying to make a call to connect to websocket through .ws(“test”).connect("/path/to/websocket") but I’m getting 400 as response status

Thank you,  
Miroslav

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [April 8, 2019, 12:37pm UTC](https://community.gatling.io/t/secured-websockets-in-gatling/4923/2 "2019-04-08T12:37:21Z")

</div>

Yes they are. Just make sure scheme is wss.

---

<div class="post-metadata">

**Author:** ![user3](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@user3](https://community.gatling.io/u/user3)\
**Post date:** [April 8, 2019, 2:50pm UTC](https://community.gatling.io/t/secured-websockets-in-gatling/4923/3 "2019-04-08T14:50:22Z")

</div>

Thanks Stephane!

I was using ws instead of wss protocol in wsBaseUrl() method
