-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove the reply filed support in operations (#680)
- Loading branch information
1 parent
88cfc79
commit bf65565
Showing
17 changed files
with
132 additions
and
163 deletions.
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.