Skip to content
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

refactor(loop) separate client and loop #31

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
d0ea08f
chore(*) add config files (busted/editor)
Tieske Oct 31, 2021
a4d5b8b
feat(topics) add validation and matching
Tieske Nov 3, 2021
8fff431
refactor(keepalive) remove keepalive logic from ioloop
Tieske Oct 26, 2021
6c9c48a
refactor(receive) separate out logic for handling a packet
Tieske Oct 26, 2021
d81f66c
fix(error) do not silently discard error
Tieske Oct 26, 2021
a5f5d27
refactor(locals) reduce variable scopes
Tieske Oct 27, 2021
c2956d6
feat(ping-timeout) implement ping timeout
Tieske Oct 27, 2021
af85356
feat(*) rewrite loop logic
Tieske Oct 31, 2021
136f3ce
feat(ioloop) add incremental back-off for idle clients
Tieske Nov 1, 2021
40bcd43
fix(mqtt5) pass errors on as is (like mqtt4)
Tieske Nov 4, 2021
8f8773a
wip
Tieske Nov 3, 2021
eda35db
fix(client) first_connect was not properly updated
Tieske Nov 4, 2021
567ee31
fix(tests) fix more tests, ioloop related
Tieske Nov 4, 2021
18cc55b
fix(copas) fix copas connector and test
Tieske Nov 4, 2021
13b43d4
chore(ci) add ansicolors+lualogging for testing
Tieske Nov 4, 2021
57ff134
fix(keep-alive) should always return an interval as first result
Tieske Nov 5, 2021
f6f6131
chore(examples) fix copas examples, remove sync example
Tieske Nov 5, 2021
6115148
fix(docs) update ssl defaults to match code
Tieske Nov 5, 2021
7ff684a
feat(options) allow full uri to be specified
Tieske Nov 6, 2021
30c3efc
chore(connectors) move files in subdir
Tieske Nov 5, 2021
ab736fe
chore(luasocket) integrate luasocket and luasocket-ssl
Tieske Nov 5, 2021
e34562f
feat(connector) add auto-detection for connectors
Tieske Nov 5, 2021
a600bd7
chore(test) added secure test for copas
Tieske Nov 5, 2021
fe062f6
fix(ssl) restore 'ssl_module' option and add proper checks
Tieske Nov 5, 2021
2db6e72
chore(validation) move secure conn validation+defaults to conn
Tieske Nov 7, 2021
c87bbbf
fix(reconnect) fix reconnect logic
Tieske Nov 8, 2021
587b121
feat(client) pass event handlers on init
Tieske Nov 8, 2021
ca6f39b
feat(shutdown) adds a client:shutdown method and event
Tieske Nov 8, 2021
c02e3d2
fix(rockspec) add 'connector.init' module to rockspec
Tieske Nov 8, 2021
0e15eaa
chore(examples) update to use 'opts.on' and auto-connector select
Tieske Nov 8, 2021
1fc5859
fix(openresty) fix/rewrite the openresty examples
Tieske Nov 8, 2021
dc1c261
feat(*) add nginx/copas specific code for adding clients
Tieske Nov 8, 2021
2d10112
fix(example) typos
Tieske Nov 8, 2021
b5d03b8
chore(docs) update docs
Tieske Nov 9, 2021
ca71e1b
chore(docs) reduce tab-size in docs for readability
Tieske Nov 9, 2021
1c04d08
fix(reconnect) set a number default (30 secs) if true
Tieske Nov 19, 2021
c8583cf
chore(test) rename test file
Tieske Nov 19, 2021
aa8f5c0
fix(timeouts) copas and nginx should have indefinite timeouts on reading
Tieske Nov 19, 2021
1300b0d
fix(loop) make packet handling async for copas/nginx
Tieske Nov 19, 2021
043badc
fix(send) add a lock when sedning for Copas connector
Tieske Jan 9, 2022
5bc4a92
fix(deps) bump to Copas 4
Tieske Jul 30, 2022
e9d8b39
fix(docs) minor documentation updates
Tieske Aug 7, 2022
196f7af
fix(copas) prevent accidental disabling of keep-alive
Tieske Oct 14, 2022
8bafeb6
fix(copas) switch to pause instead of sleep
Tieske Oct 26, 2022
7b8cb78
chore(docs) fix some typos
Tieske Jan 14, 2023
bbd5226
fix(patterns) escape lua magic characters
Tieske Jan 14, 2023
e452151
chore(docs) small doc updates/fixes
Tieske Jan 25, 2023
b44634a
feat(clean): option to only connect clean on first connect
Tieske Nov 24, 2023
be50bd1
change(topic): parsing topics distinguish no-match from error
Tieske Nov 25, 2023
b19fb52
chore(ci): fix linter warnings
Tieske Dec 2, 2023
b16be62
markdownlint: improved config
xHasKx Dec 22, 2023
23a070b
lua version fix md file
xHasKx Dec 22, 2023
82c6213
README.md: added short installation header
xHasKx Dec 22, 2023
aa207ac
README.md: busted tests dependency fix
xHasKx Dec 22, 2023
a84c7e4
markdown link fix
xHasKx Dec 22, 2023
c652064
markdown fix
xHasKx Dec 22, 2023
46fb48a
markdown improve
xHasKx Dec 22, 2023
fe730ba
markdown improved a bit
xHasKx Dec 22, 2023
8312df3
markdown improved a bit + openresty.lua path fix
xHasKx Dec 22, 2023
1669a15
markdown fix
xHasKx Dec 22, 2023
f8411de
markdown fix
xHasKx Dec 22, 2023
de92f3c
fix(buffered): properly calculate the remainder to be read
Tieske Jul 20, 2024
d712269
fix(luasocket): return the partial results read
Tieske Jul 20, 2024
1e2a118
docs(mqtt): fix some doc comments
Tieske Jul 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ From LuaRocks:

See [https://xhaskx.github.io/luamqtt/](https://xhaskx.github.io/luamqtt/)

[More details](./docs_topics/README.md)

# Forum

See [flespi forum thread](https://forum.flespi.com/d/97-luamqtt-mqtt-client-written-in-pure-lua)
Expand Down
2 changes: 2 additions & 0 deletions docs_topics/03-lua_versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ It's tested to work on Debian 9 GNU/Linux with Lua versions:
* LuaJIT 2.0.0 ... LuaJIT 2.1.0 beta3
* It may also work on other Lua versions without any guarantees

So basically it should work on any modern Linux-based OS with Lua interpreter available.
xHasKx marked this conversation as resolved.
Show resolved Hide resolved

Also has run under **Windows** and it was ok, but installing luarocks-modules may be a non-trivial task on this OS.
11 changes: 11 additions & 0 deletions docs_topics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Short documentation topics

[Installation](./01-installation.md)

[Dependencies](./02-dependencies.md)

[Lua versions](./03-lua_versions.md)

[MQTT versions](./04-mqtt_versions.md)

[Connectors](./05-connectors.md)