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