-
-
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 support for WebSocket clients #267
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.
SonarCloud Quality Gate failed.
|
I think when you emit the Line 106 in 2b2fb54
connect function in glee.ts invoked.Line 123 in 2b2fb54
|
It's called here: https://github.com/asyncapi/glee/blob/master/src/index.ts#L169. Notice the |
@deepanshu44 do you plan to continue working on it? Open Force ended but since you started during the event, it is ok if you complete work later |
@derberg I am really sorry about this. I will get this done in this week. |
@deepanshu44 no need to be sorry. I'm just making sure all is fine. I know many of our contributors, especially those coming from initiatives like Open Force, are mostly students and have their studies-related duties. Cheers 🍺 |
_connect(): Promise<this> { | ||
return new Promise((resolve, reject) => { | ||
const serverUrl = new URL(this.serverUrlExpanded) | ||
const wsHttpServer = this.glee.options?.websocket?.httpServer || http.createServer() |
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 we are creating ws client I think we should do something like this
const wsHttpServer = this.glee.options?.websocket?.httpServer || http.createServer() | |
const wsClient = new Websocket(serverUrl); |
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.
This is the WS server but you're right, we should be doing this on the client, which is in the ws-client-/indext.ts
file.
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.
Actually, I was not able to comment on the ws-client/index.ts
file because it was a file rename. Sorry for any confusion.
@fmvilas I have a very small doubt, why we want to create Websocket-client, as, as far as I know, we can create Websocket-client using asyncapi generator? |
Generator and Glee serve two different purposes:
Does that make sense? |
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Closing this one in favor of #319. |
resolves issue #259