Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhangyuan/whiz
mqtt message service prototype
https://github.com/zhangyuan/whiz
Last synced: about 1 month ago
JSON representation
mqtt message service prototype
- Host: GitHub
- URL: https://github.com/zhangyuan/whiz
- Owner: zhangyuan
- License: mit
- Created: 2015-10-15T13:17:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-15T13:48:39.000Z (over 9 years ago)
- Last Synced: 2024-10-27T14:35:28.439Z (3 months ago)
- Language: JavaScript
- Size: 336 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# whiz
mqtt message service prototype## How to run the service
### Setup mosquitto
The configurations of mosquitto are as follows:
```
listener 9001
protocol websocketslistener 1883
protocol mqtt
```Start the mosquitto sever with the config file, for exmaple
```
mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf
```### Run the service
The service uses H2 database in memory, so there is no need to setup external database service. And the databse will be dropped and then created every time ther service starts.
```
./gradlew jettyRun
```### Try the service
1. Open .
2. Set username to `bar` and click the `update` button to set the current user as `bar`.
3. Hit , which indicated the user `foo` sends `bar` the message `hello`. Ideally, the message will appear on### APIs
* GET
* GET
* GET