JB
ae3f72f677
migrate imports, copyrights, etc ( #270 )
2023-07-31 13:26:26 +01:00
JB
ac812154e6
Allow Publish to return custom Ack error responses ( #256 )
...
* Allow publish error returns as acks
* Add Ignore Packet, tests
2023-07-20 22:52:16 +01:00
JB
48233334a5
Do not retain messages if retain is not available ( #261 )
...
* Do not retain messages if retain is not available
* Add Test
2023-07-16 20:41:28 +01:00
JB
050e24662f
Retain flag should be delivered as false in v3 ( #257 )
...
* retain should be delivered as false in v3
* Forward retained flag if publish is from subscribe action
2023-07-16 20:36:45 +01:00
thedevop
c77d1c0331
Ensure msg doesn't exceed subscription QoS ( #253 )
...
Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com >
2023-07-13 18:19:22 +01:00
JB
6d394d1fe9
Expose SendConnack, err return on OnConnect ( #240 )
2023-06-14 20:05:02 +01:00
Derek Duncan
e1a9497c25
Add retainMessage to LWT to properly handle message retention ( #234 )
...
* Add retainMessage to LWT to properly handle message retention if specified in connect
* Add will retain flag on missed test
---------
Co-authored-by: Derek Duncan <derekduncan@gmail.com >
2023-06-04 07:31:55 +01:00
thedevop
52a347169a
Use context to exit WriteLoop ( #222 )
...
* Use context to exit WriteLoop
* Use context to exit WriteLoop
* Use context to exit WriteLoop
* Use context to exit WriteLoop
* Fix misspelling
2023-05-08 11:30:44 +01:00
JB
5225a357e5
refactor server keepalive for hook access ( #220 )
2023-05-06 14:11:54 +01:00
JB
a734a0dc73
Use context to signal client open state ( #218 )
2023-05-06 11:55:40 +01:00
JB
aaf1d9d4c6
Configurable client bufio reader/writer sizes ( #190 )
2023-03-11 23:13:28 +00:00
JB
46babc89c8
Allow 0 byte usernames if correctly formed ( #181 )
...
* Allow 0 byte usernames if correctly formed
* Allow 0 byte usernames if correctly formed
2023-02-25 01:37:54 +00:00
JB
9b7a943888
Correctly identify and clean taken-over sessions ( #180 )
2023-02-25 01:24:17 +00:00
mochi-co
a909d30923
Small style fix
2023-02-22 23:33:49 +00:00
thedevop
a302c9dd88
Use *packets.Packet for outbound chan ( #176 )
...
* Use *packets.Packet for outbound chan
* Use *packets.Packet for outbound chan
* Use *packets.Packet for outbound chan
2023-02-22 23:02:44 +00:00
JB
e5716caad1
Fix potential NextPacketID endless loop, expand tests ( #169 )
...
* Fix possible NextPacketID endless loop, expand tests
* Optimize NextPacketID
* Use math constants
2023-02-10 23:27:21 +00:00
JB
aac245441a
No longer issue retained messages on session takeover ( #166 )
2023-02-09 23:57:24 +00:00
JB
bb54cc68e6
Client write buffers ( #165 )
...
* Replace fanpool with client write buffers
2023-02-09 22:34:30 +00:00
JB
50aae47618
Publish retained messages only after connack ( #147 )
2023-01-16 19:50:01 +00:00
JB
300152413c
Ignore retain as published v3 ( #142 )
...
* Optimise Capabilities struct alignment
* Only use RetainAsPublished for v5 clients
2023-01-13 23:38:49 +00:00
mochi-co
c464b46713
export client.Net.Conn for external use
2023-01-09 22:49:40 +00:00
Wind
a556feb325
Add the OnUnsubscribed hook to the unsubscribeClient method ( #122 )
...
Add the OnUnsubscribed hook to the unsubscribeClient method,and change the unsubscribeClient to externally visible. In a clustered environment, if a client is disconnected and then connected to another node, the subscriptions on the previous node need to be cleared.
2022-12-16 18:23:58 +00:00
JB
d8f28cb843
Enforce server max packet ( #121 )
...
* Enforce Server Maximum Packet Size on client read
* Fix tests
2022-12-16 00:30:23 +00:00
mochi-co
fe5d9ffa61
Simplify Client construction, add NewClient method to Server, add Publish convenience method
2022-12-12 11:37:19 +00:00
mochi-co
8a04648c09
Cleanup godoc formatting
2022-12-11 21:38:01 +00:00
mochi-co
74ed8cd046
Update go mod and imports to v2
2022-12-11 11:50:44 +00:00
mochi-co
898c90d4ca
Rewrite everything from scratch for mqtt v5
2022-12-10 21:49:32 +00:00