mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-22 09:48:33 +00:00
Created new data types to store the last time a message was received from a device along with publishing the last will topic, keepalive time, and credentials over the /connections topic. These were mirrored also over the REST API for synchronous stateful services starting up from a crashed k8s pod or other usecases. Start by subscribing to /connections/+ and then GET /api/v1/connections to get the open connections, if a device connects while you are setting up your state, your messageHandler will handle the setup since it has the same information. This information has been published over for devices you don't have any control over and for relay purposes. You can take all of the device information and now create a faux client emulating your downstream device, this may sound strange; but I have a usecase for it, a lot of cheap chinese IoT's were not designed for mass production and we have to fix their messages in the cloud before relaying them to our other legacy servers
14 lines
111 B
Plaintext
14 lines
111 B
Plaintext
hmq
|
|
log
|
|
log/*
|
|
*.test
|
|
# ide
|
|
.idea
|
|
.vscode/settings.json
|
|
.pre-commit-config.yaml
|
|
hmq.exe
|
|
*.sw*
|
|
*.swo
|
|
*.swp
|
|
*.swn
|