-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 for API Gateway #896
Comments
I think this would be extremely useful, if you're using the websocket endpoints as a consumer and not http then you're not testing what you're deploying. 👍 |
I just started researching API Gateway Websockets and was about to dive into some test code. I was planning to do some testing using HTTP endpoints, but now I'm wondering if this is even possible. Any ideas? |
I'd love to see that as well. |
We'd love to see this supported in SAM asap. |
@virtuoushub I'm not 100% sure, but I think that can only be packaged and deployed using the sam cli, but not actually run. |
@redtopia ah, I think you are correct. I have successfully packaged and deployed; but running locally I have not tested. Thanks for clarifying. |
That example is only for packaging and deploying. API Gateway websocket support for localhost is still lacking in SAM. |
I want this. XD |
👍 |
Please help asap. |
Would love to see this feature, because my application relies heavily on websockets. This would make the local development/testing much easier. |
My company would really benefit from the ability to do local websocket testing |
+1 We will need this for local development on our new application which may use web sockets. Please update soon |
+1 |
This continues to be a big gap in this tooling. Yes, it seems that engineers can make do by creating a |
any progress ? |
Can we get an update here? |
I think this would really help. Also, there is no way to test custom authorizer locally.
Having the auth function deployed, the checks do happen, but there is now way to test it locally as such. Took me a while to figure this out. Another main issue, not having any means to hot reload as code is being changed. This really hurts |
Following. Would really be ideal to have this feature in SAM... |
Any update on this? |
+1 Following for an update |
+1 - would like to see when released. |
+1 I hope this is implemented soon. My use case is end-to-end testing of asynchronous application |
+1 Please add this feature |
+1 this feature would be extremely useful. |
Thanks for sending this pull request. We are hesitant to merge this today because with the current resources we would not be able to commit to maintaining this feature in the long run - maintain feature parity and fix issues with the implementation in a timely manner. Given the reaction we can see that this is important to the community and we recommend one of the two alternatives -
|
FWIW I tried to run SAM Accelerate with the sample WS API Gateway provided by AWS team, but it failed. Details here: #3459 |
+1 Following |
I honestly can't believe that AWS would ship WebSockets for a API gateway and have not support local development. It's tacitly saying that if you want to use AWS you'll need to have individual Accounts for development. The cost and speed implications for such a policy will result in AWS's loss of developers. |
Is there still no official or unofficial solution for local development!? |
Perhaps it's because they insist on hiring only people who can pass their cringe requirements for leetcode that require a month or more of full-time studying only students or recent grads have time for, covering questions which have almost no usefulness in real-world scenarios that aren't easy to google the solution for. And, after working there for a year or two, those same people leave for more lucrative positions that also have this requirement. Before they even reach a senior level tenure for most of us, they already have enough cash to retire. It leaves the most experienced people to just stop applying after a while, hence the large number of open senior/leadership positions across FAANG, half of which are labeled urgent yet remain there for months. Solution? Have a leetcode OR seniority/experience + project assignment & presentation/defense instead. If I were a hiring manager there, I'd hire on the spot anyone who can successfully implement this issue. Will that happen? No. So let's buckle up to be ignored. |
@theimowski This should be fixed. Please let us know if you have any more feedback for us on Accelerate! |
I've recently created a github repo that I use to locally test my AWS websocket work. It also supports local testing of S3 static websites and apis served by API Gateway. |
Thank you for the interest. To support this today in cloud, you can use sam sync. We are still exploring a Plugin based solution for local development to allow the community to enable/extend features like this. Give that, we are closing this in favor of the Plugins tracking issue: #3265 |
|
why close this ticket in favor of the Plugins tracking issue if the Plugins don't solve the issue automatically? There must be someone who will create the plugin at least. SAM Accelerate doesn't solve the issue for all cases either, so this ticket is basically closed with no resolution. |
I've been waiting over three years! REOPEN THIS TICKET! |
@jfuss it seems that there is interest in making this feature available. I can tell you that the ONLY reason why I am not using websockets on AWS is because I have no way to get them to work in local development environments. |
Is it currently stagnant? I think it is necessary to support Websocket. |
Hey AWS - Perhaps you haven't noticed, but Azure has been gaining a lot of ground on you lately. Perhaps this is in part due to their robust tooling offerings? 😮 |
Hi everyone, Late this month, I came here to confirm this lack of feature, but I tried to make this work until SAM fixed the issue. Please check my guide: https://medium.com/solutions-architect-rocks/java-websockets-powered-by-aws-lambda-8cd974024030 |
November 2024 - 6 years since the ticket was opened. |
Describe your idea/feature/enhancement
As per the announcement of WebSocket support in API Gateway, adding WebSocket support to SAM would facilitate local development.
Proposal
Add WebSocket support to API Gateway functionality.
This may be entirely out of scope of the SAM project, but came to mind when initially exploring API Gateway with WebSocket support.
The text was updated successfully, but these errors were encountered: