Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 websockets

listener 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