mochi-co
|
666440fe56
|
Adds Inflight TTL and Period Resend
|
2022-08-16 21:19:42 +01:00 |
|
mochi
|
d8f6d63cc8
|
Add CleanSession and Username to events.Client struct
|
2022-06-22 12:33:09 +01:00 |
|
mochi
|
27f3c484ad
|
Extend onsusbcribe, onunsubscribe events
|
2022-05-04 12:53:04 +01:00 |
|
mochi
|
94aeacf0cb
|
only check final outcome due to races
|
2022-04-10 19:46:12 +01:00 |
|
mochi
|
5cb8a081a1
|
accept any error for invalid protocol due to races
|
2022-04-10 19:43:59 +01:00 |
|
mochi
|
fc00112e47
|
Check for protocol violation errors
|
2022-04-10 19:42:37 +01:00 |
|
mochi
|
45c4a64b87
|
Abandon client state if the existing client specified a cleansession
|
2022-04-10 19:07:46 +01:00 |
|
mochi
|
0f67d9e8ff
|
Update EstablishConnection tests to ensure buffers and pool are correctly released after use
|
2022-04-10 17:37:46 +01:00 |
|
mochi
|
6674cd64eb
|
clarify error checking
|
2022-04-10 01:31:36 +01:00 |
|
JB
|
9ea687eb94
|
Merge pull request #61 from mochi-co/server-options
Configurable Server Options
|
2022-04-09 20:29:23 +01:00 |
|
mochi
|
ae6073c79c
|
track logged error
|
2022-03-31 18:23:12 +01:00 |
|
mochi
|
b072a08f0b
|
Update test to check for packet rejection
|
2022-03-31 18:04:41 +01:00 |
|
JB
|
8acb182820
|
Merge pull request #53 from stffabi/feature/onprocessmessage-event
Events: Add OnProcessMessage event
|
2022-03-31 17:41:22 +01:00 |
|
mochi
|
70def39ff9
|
add tests for new NewServer function
|
2022-03-31 17:00:00 +01:00 |
|
stffabi
|
7b4e79707b
|
Events: Add OnProcessMessage event
This event gets called right after ACL checking but before any other
Fields of the packet get evaluated.
|
2022-03-21 10:11:29 +01:00 |
|
Joshua MacDonald
|
c6643592f6
|
Combines two fixes
|
2022-03-17 14:19:23 -07:00 |
|
stffabi
|
f5fc5e8c44
|
Subscribe: Only send retained messages if ACLs has allowed subscription to the topic
|
2022-03-17 09:25:29 +01:00 |
|
mochi
|
9f44712b80
|
Fix incorrect test
The previous publish inline test incorrectly approved retain packets without retain=true fixedheader values.
|
2022-03-16 18:16:48 +00:00 |
|
mochi
|
ab25083ed2
|
Merge branch 'master' of https://github.com/mochi-co/mqtt into v1.1.2
# Conflicts:
# server/internal/clients/clients.go
|
2022-03-16 18:09:00 +00:00 |
|
JB
|
3286d5a484
|
Replace Travis with Github Actions (#41)
* Remove Travis CI
* Add Github Actions Workflow
* Update badges for build status, coverage, report card, doc reference
* use actions for all pull requests and pushes
* test all files for coverage
* Apply gofmt -s to simplify code
* Fix typos
* Cleanup comments
* Cleanup comments
Co-authored-by: mochi <mochimou@icloud.com>
|
2022-03-15 19:56:42 +00:00 |
|
mochi
|
d6a92cc5bd
|
Add Keyed fields to events.Client for readability and go vet
|
2022-03-15 18:44:49 +00:00 |
|
Joshua MacDonald
|
0a5f6d3a9d
|
Add an OnError handler; report the reason for disconnects. (#38)
|
2022-03-15 17:59:52 +00:00 |
|
mochi
|
7f10c28a37
|
remove println
|
2022-01-30 10:30:01 +00:00 |
|
mochi
|
03d2a8bc82
|
Add tests for OnConnect, OnDisconnect
|
2022-01-24 18:29:18 +00:00 |
|
mochi
|
22d7338878
|
Add test for AllowClients field
|
2022-01-14 17:04:39 +00:00 |
|
mochi
|
3f28515706
|
Remove unnecessary type declarations
|
2022-01-14 17:04:21 +00:00 |
|
mochi
|
7d73ce9caf
|
Add setupServerClients to inherit existing server instance
previously new clients generated a new server object, so system stats were not shared. This change ensures all test clients use the same server
|
2022-01-14 17:04:01 +00:00 |
|
mochi
|
0abbaf5070
|
fix onmessage test
|
2022-01-05 21:09:12 +00:00 |
|
mochi
|
c2a42a16ca
|
Merge OnMessage and OnMessageModify
|
2022-01-05 20:59:14 +00:00 |
|
mochi
|
480e60b3f0
|
Adds tests for publishing event hooks
|
2022-01-05 20:38:10 +00:00 |
|
mochi
|
7c7b8d58fe
|
Return packets to internal
Now that we can alias types, there's no compelling reason to expose the packets library
|
2022-01-05 18:10:24 +00:00 |
|
mochi
|
b5685ca0ee
|
update packets library import reference
|
2022-01-05 17:01:15 +00:00 |
|
mochi
|
aeb4190733
|
Add tests for new inline publishing method
|
2022-01-05 13:32:28 +00:00 |
|
Mochi
|
bec9401213
|
Fix test races
|
2020-02-12 21:15:15 +00:00 |
|
Mochi
|
e96ef0170d
|
Code and Comments cleanup, vendor deps
|
2020-02-08 13:24:31 +00:00 |
|
Mochi
|
d1daa843df
|
Persistence V1
|
2020-02-04 21:18:29 +00:00 |
|
Mochi
|
85f269af5d
|
Adds delete from persistence
|
2020-02-02 14:38:39 +00:00 |
|
Mochi
|
4a10b0b676
|
Adds more persistence tests
|
2020-02-01 18:35:46 +00:00 |
|
Mochi
|
216b04011f
|
Load persistence into server
|
2020-01-25 13:21:24 +00:00 |
|
Mochi
|
79d1ee392b
|
Progress on persistence
|
2020-01-15 21:32:40 +00:00 |
|
Mochi
|
6a2d5bede1
|
Websocket Listener
|
2020-01-04 20:06:37 +00:00 |
|
Mochi
|
4d3b1d7da4
|
Publish $SYS Stats to topics
|
2019-12-31 23:49:17 +00:00 |
|
Mochi
|
19f74cb691
|
Basic $SYS stats
|
2019-12-31 19:02:55 +00:00 |
|
Mochi
|
b6184987e8
|
Restructures code
|
2019-12-31 15:02:16 +00:00 |
|