-
-
Notifications
You must be signed in to change notification settings - Fork 61
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: remove the reply filed support in operations #680
Merged
asyncapi-bot
merged 6 commits into
asyncapi:master
from
KhudaDad414:remove-request-reply
Jan 11, 2024
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
89762fb
update dummy example
KhudaDad414 368cbc0
remove reply support logic.
KhudaDad414 366af83
fix some bugs for mqtt adapter
KhudaDad414 3d92438
make slack_raction_listener work
KhudaDad414 155ea81
fix linting issue
KhudaDad414 c7a221e
fix the docs
KhudaDad414 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,51 @@ | ||
# Dummy | ||
## Introduction | ||
|
||
This is a dummy example mainly used to test functionalities. | ||
This project is an example websocket-based application that simulates email sending and forwards messages to a Mosquitto server. It's a great example of real-time data handling and integration with MQTT protocol. | ||
|
||
## Getting Started | ||
|
||
### Installation | ||
|
||
To set up the project, follow these simple steps: | ||
|
||
1. Clone the Glee repository to your local machine. | ||
2. Navigate to the project directory (examples/dummy). | ||
3. Run the following command to install all the required dependencies: | ||
|
||
```bash | ||
npm i | ||
``` | ||
|
||
### Running the Project | ||
|
||
After installing the dependencies, you can start the project by running: | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
This will start the development server on `localhost:3005`. | ||
|
||
## Making a WebSocket Connection | ||
|
||
To interact with the WebSocket server, you can use a WebSocket client like [websocat](https://github.com/vi/websocat). Here's how you can connect and send a message: | ||
|
||
1. Open a terminal and connect to the WebSocket server using the following command: | ||
|
||
```bash | ||
websocat ws://localhost:3005/user/signedup | ||
``` | ||
|
||
2. Once connected, you can send a message in JSON format. For example: | ||
|
||
```json | ||
{"displayName": "John Doe", "email": "[email protected]"} | ||
``` | ||
|
||
## Behind the Scenes | ||
|
||
When you send a message: | ||
|
||
- The `receiveUserSignedUp` function is triggered. | ||
- The application simulates sending an email to the provided email address. | ||
- It then forwards the message to the Mosquitto server at `test.mosquitto.org`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
examples/dummy/functions/onUserSignedUp.ts → ...es/dummy/functions/recieveUserSignedUp.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
interesting, reply is no more. it turned out to be obsolete. thanks for the update
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.
it was cool to have it, you didn't have to specify the channel and the server that you sent the message to. but I think it's a source of confusion for now that we release version 1.0. this is something that we need for v2 of glee.