-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat: add http adapter support for glee #320
Conversation
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.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
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.
Left a few comments.
Along with those, I'm adding two more generic comments here:
- What does "adding HTTP header init" means? 😄
- It would be great if you can consider making it clear when it should be creating an HTTP server and when it should be creating a client (client can be done in another PR). For instance, if the server is marked as "local", then it should create a server. Otherwise, it shouldn't. See an example here: https://github.com/asyncapi/glee/pull/319/files#diff-5a59976f2bbdbefa8fb1b10842622e9c61def3c47869b93b2d0d3d1374530734R21.
Kudos, SonarCloud Quality Gate passed!
|
Sorry for that I will try to be more clear on the commit messages 🙂 |
@fmvilas Can you kindly provide me with some resources to study web sockets, I am baffled with web sockets at the moment.😟 |
Sure, MDN has a great resource: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API. |
…s as an array for holding multiple res
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.
Since you are adding a new adapter to support the HTTP server you have to update the docs accordingly.
@Souvikns I have changed the |
Kudos, SonarCloud Quality Gate passed!
|
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.
LGTM!
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.
Left some comments
@fmvilas Made the changes you have suggested. Please check |
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.
Left some more comments. Please don't rush it out. Take your time to evaluate what's the best solution. For instance, I see you're repeating { [key: string]: string } | { [key: string]: string[] }
in multiple places. Maybe it's time to define it as a custom type to reuse it.
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.
Left a few more suggestions
Kudos, SonarCloud Quality Gate passed!
|
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.
LGTM 👍
/rtm |
🎉 This PR is included in version 0.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Co-authored-by: Ritik Rawal <ritikrawal@MacBook-Pro-5.local>%0ACo-authored-by: Ritik Rawal <ritikrawal@MacBook-Pro-85.local>%0ACo-authored-by: Ritik Rawal <ritikrawal@ip-192-168-0-101.ap-south-1.compute.internal>%0ACo-authored-by: Ritik Rawal <ritikrawal@ip-192-168-0-102.ap-south-1.compute.internal>
Co-authored-by: Ritik Rawal <ritikrawal@MacBook-Pro-5.local>%0ACo-authored-by: Ritik Rawal <ritikrawal@MacBook-Pro-85.local>%0ACo-authored-by: Ritik Rawal <ritikrawal@ip-192-168-0-101.ap-south-1.compute.internal>%0ACo-authored-by: Ritik Rawal <ritikrawal@ip-192-168-0-102.ap-south-1.compute.internal>
Description
Implement the HTTP adapter for both server and client
Aims to -
Steps to test the codeflow
Steps to run the base code
npm i
npm run dev
Steps to run the server
4. cd
examples/anime-http/server
5.
npm i
6.
npm run dev
Steps to run the client
8. cd
examples/anime-http/client
9.
npm i
10.
npm run dev