New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket support #250
Websocket support #250
Conversation
… empty websockets structure as an additional parameter (via constructPlugin)
…et-specific functions of index.ts
…e a custom domain
…tom domain and a corresponding Route53 record
…domain using API gateway V2
…tom domain and a corresponding Route53 record
… the available CloudFormation stack
… websocket) is enabled
…he websocket domain and extended 'summary printing' test to cover the function again
…ed domainSummary test part
My one suggestion would be to allow customDomain to be backwards compatible and fall back on the previous solution if an array is not provided. Something else I'm noticing is that occasionally when I run this it seems to just get stuck. The last log that prints out is "Created API mapping for".... I'm looking into this now. |
what is blocking this pull request? would love to see this being released , thanks |
+1 |
ping @captainsidd any chance you could review this pull request ? thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Are there any instructions on how to use this while we wait for it to get merged? I only just discovered this functionality is missing as I was in the process of trying to set up a custom domain for a Websocket service! EDIT: Worked it out, I get an error Looking at the SLS_DEBUG logs, it looks like this is because the first domain is already done (why doesn't it print it in the summary like it used to?) and the second one failed because I had made up the name to see if the PR was working or not!
Will try again once I can get the new domain created, but it might be nice to handle this error in case someone makes a typo in their domain one day, rather than silently failing! UPDATE: Once I put in a valid domain everything worked. I guess once the code is updated so that it's backwards compatible (accepting a non-array parameter) then it should be ready to merge? I also note that doesn't print a summary of the configured domains unless they have changed, so might be good to have that shown as well, just to confirm it's actually doing something as I get no output at all from it unless I use |
Its been 4 months, and still hasn't been merged... |
We're running in prod without a custom domain 😬 |
My understanding is that this PR is unlikely to be merged until it's changed so that it is backwards compatible with existing serverless.yml files, otherwise once it's changed it'll break things for everyone else. I had to remove the whole stack and redeploy to change a URL (a bug in CloudFront apparently) and as a result the production URL changed, so I'm glad I had already deployed the custom domain name with this PR, as it meant nothing consuming my service broke! |
I would love to see this merged. Really useful and necessary feature, thanks for the work! |
any updates please ? thanks |
tested it,
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
I'm closing this PR because I believe it's been implemented with #319. If you feel this PR is still needed then feel free to reopen it. |
Fixes #207 and #228
Description of Issue Fixed
Added fixes to @pavel-ignatiev fork to add websocket support.
Changes proposed in this pull request:
initializeDomainManager()
function previouslyinitializevariables()
which will only return enabled domains.