# Websockets with custom domain

**URL:** <https://forum.serverless.com/t/websockets-with-custom-domain/8586>\
**Category:** Serverless Framework\
**Created:** [June 19, 2019, 2:26pm UTC](https://forum.serverless.com/t/websockets-with-custom-domain/8586 "2019-06-19T14:26:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azzuri](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/azzuri/32/3416_2.png) [@Azzuri](https://forum.serverless.com/u/Azzuri)\
**Post date:** [June 19, 2019, 2:26pm UTC](https://forum.serverless.com/t/websockets-with-custom-domain/8586/1 "2019-06-19T14:26:05Z")

</div>

Is it possible to use a custom domain with a WebSocket gateway in AWS? I’ve successfully deployed multiple REST services with a custom domain but that method doesn’t appear to work for WebSockets and I’ve not been able to find anything to point me in the right direction.

The serverless-domain-manager plugin doesn’t seem to work as it only seems to be able to connect to REST services. If I try it with a WebSocket only service then I get the following error

`Error: Failed to find CloudFormation resources for <domain>`

Enabling debug narrows it down to

`ValidationError: Resource ApiGatewayRestApi does not exist for stack <stack>`

I can’t see anything in the plugin docs that mention WebSockets so I assume it’s not supported?

Is there another way of using a custom domain for WebSockets?

EDIT: I should add that if I remove the custom domain parts it deploys fine to an AWS url.

Cheers

---

<div class="post-metadata">

**Author:** ![chrizonline](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@chrizonline](https://forum.serverless.com/u/chrizonline)\
**Post date:** [August 1, 2019, 8:48am UTC](https://forum.serverless.com/t/websockets-with-custom-domain/8586/2 "2019-08-01T08:48:08Z")

</div>

Hi, have you found the solution to this?

---

<div class="post-metadata">

**Author:** ![Truescope](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@Truescope](https://forum.serverless.com/u/Truescope)\
**Post date:** [February 3, 2020, 11:44pm UTC](https://forum.serverless.com/t/websockets-with-custom-domain/8586/3 "2020-02-03T23:44:25Z")

</div>

Hi I am also looking for a solution for this. It doesn’t look like serverless supports custom domain names for websockets

The custom domain manager plugin also doesn’t support it.

Has anyone found a work around?
