Christian
e43e7f8e36
Use latest language features ( #2176 )
...
* Make use of language features line AsyncDispose, init etc.
* Fix build errors
* Improve Unit Tests
* Improve Unit Tests
* Improve Unit Tests
* Update samples
* Remove obsolete benchmarks
* Code cleanup
* Improve unit tests
* Improve Unit Tests
* Fix Unit Tests
* Improve Unit Tests
* Improve Unit Tests
* Restore unit tests
* Exclude load tests from unit tests
2025-08-30 10:52:59 +02:00
timyhac
247988e633
Remove "MQTTv5 only" in documentation comments for MqttClientConnectResult.IsSessionPresent and MqttClientConnectResult.ResultCode ( #2166 )
...
* Remove "MQTTv5" from documentation comments for `IsSessionPresent`
As far as I can tell, this is available for MQTT v3.1.1
References:
* [OASIS Standard](https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718035 )
* [MQTTnet source code](https://github.com/dotnet/MQTTnet/blob/93a9d8d1dbe8dde2b7d79a37c873fae13b4f4797/Source/MQTTnet/Connecting/MqttClientConnectResultFactory.cs#L75 )
* Remove "MQTTv5 only" for `ResultCode`
2025-03-29 19:11:53 +01:00
Youssef Victor
93a9d8d1db
Move to MTP ( #2163 )
2025-03-02 11:59:33 +01:00
Christian
24c418cf43
Update README.md
2025-01-07 18:57:58 +01:00
Lucas T and christian
948c7c2b69
Corrected Cancellation Source for KeepAlive Messages ( #2129 )
...
* Corrected Cancellation Source for KeepAlive Messages
* Use half of the keep alive value for the ping timeout
* Update release notes
* Update ReleaseNotes.md
* Update ReleaseNotes.md
* Update ReleaseNotes.md
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
v5.0.1
2025-01-02 12:17:05 +01:00
christian
1cdc343e6d
Update release notes
2025-01-02 12:11:57 +01:00
27771f0146
Improve session message injection ( #2117 )
...
* Improve session message injection methods
* Add more tests for session injection
* Change return type from MqttPublishPacket to MqttPacketWithIdentifier
* Use dedicated type for MattApplicationMessage injection result
* Code review minor fixes
* Apply project code style
* Update release notes
---------
Co-authored-by: Anton Smolkov <anton.smolkov@idp.zyfra.com >
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2025-01-02 11:51:46 +01:00
christian
e7de2b913a
Increase version
2025-01-02 11:34:14 +01:00
christian
3dd3279656
Fix missing release notes in nuget package
2025-01-02 11:34:08 +01:00
christian
c5934bf18b
Reset release notes
2025-01-02 11:22:19 +01:00
christian
7715bf37dc
Remove package suffix for final release version
v5.0.0
2024-12-30 11:54:00 +01:00
Christian
9dbe1e4b12
Fix support for enhanced authentication ( #2132 )
...
* Implement enhanced authentication for client and server.
* Update samples
* Add abstraction layer
* Merge master
* Use dedicated class for public API.
* Update release notes
* Rename methods to fit naming scheme
* Fix unit tests and samples
2024-12-25 14:17:20 +01:00
christian
f13b3eb6bb
Update release notes
2024-12-23 12:17:00 +01:00
Anton Smolkov and Anton Smolkov
8eb884fa5d
Add ability to get session from server by client id ( #2131 )
...
Co-authored-by: Anton Smolkov <anton.smolkov@idp.zyfra.com >
2024-12-23 12:05:09 +01:00
Victornor and christian
9f81a2bb71
Add deflate compressions options to MqttClientWebSocketOptionsBuilder ( #2127 )
...
* fix: unused tryPrivate parameter in WithTryPrivate
* Fix wrong usage of try private
* feat: add option to provide deflate compression options to WebSocketOptionsBuilder
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-12-23 11:21:46 +01:00
老九 and christian
e2f8d0f0ac
Added UserName property to various Server EventArgs. ( #2123 )
...
* Added UserName property to various Server EventArgs.
* InjectedMqttApplicationMessage: Add SenderUserName property.
* Reformat code
* Reformat code
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-12-10 19:44:38 +01:00
Victornor and christian
981ea02149
Unused parameter in WithTryPrivate causing client to send incorrect version byte in header. ( #2125 )
...
* fix: unused tryPrivate parameter in WithTryPrivate
* Fix wrong usage of try private
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-12-10 19:37:29 +01:00
Christian
8566fd5395
Replace all _DataTestMethod_ ( #2119 )
...
* Replace all DataTestMethod with TestMethod.
* Update test nugets
2024-12-03 11:40:06 +01:00
老九 and christian
8089c6bdbc
Added EndPoint RemoteEndPoint {get;} property to channel ( #2111 )
...
* Added EndPoint RemoteEndPoint{get;} property
* Reformat code
* Reformat code
---------
Co-authored-by: christian <6939810+chkr1011@users.noreply.github.com >
2024-12-02 11:52:24 +01:00
christian
ef5b6c9b32
Merge remote-tracking branch 'origin/master'
2024-12-02 11:22:11 +01:00
christian
4aa4a12e47
Update release notes
2024-12-02 10:40:05 +01:00
老九
6bf2b4eaca
Cannot set any properties of tcpOptions when with WebSocketServer. ( #2118 )
2024-12-02 10:24:03 +01:00
老九
6ef6b57064
Improve the compatibility of MqttClientOptionsBuilder.WithConnectionUri() ( #2107 )
...
* Improve the compatibility of MqttClientOptionsBuilder.WithConnectionUri() method.
* Force UseTls to true for secure schemes.
* Add support for UnixDomainSocket.
2024-12-01 14:10:58 +01:00
老九
7d4027958c
Set the default value of SslProtocol to SslProtocols.None. ( #2106 )
...
* Set the default value of SslProtocol to SslProtocols.None.
* Add summary of SslProtocol.
2024-12-01 14:06:19 +01:00
老九
bdb74642c2
MqttClientFactory: Fix CreateLowLevelMqttClient not using method parameters ( #2110 )
...
* Fix CreateLowLevelMqttClient not using method parameters.
* Remove UseClientAdapterFactory()
2024-11-30 13:46:36 +01:00
Andrea Vouk
63d85184e1
Convert null checks to modern ThrowIfNull checks ( #2089 )
...
Convert null check to modern ThrowIfNull checks
2024-10-26 11:41:58 +02:00
Christian
0506857f0d
Set max pending mesages per client to 1000 ( #2096 )
...
Set max pending mesages per client to 1000.
2024-10-26 11:41:25 +02:00
christian
6417baa081
Fix nuget publish
2024-10-22 11:08:29 +02:00
christian
74bb68ad73
Improve CI
v5.0.0-rc1
2024-09-22 20:15:50 +02:00
Christian
81a4e7cb86
Pass cancellation token to TCP listeners ( #2082 )
2024-09-15 16:08:21 +02:00
Christian
2fdbb02dc8
Fix parsing error of AUTH packet with empty body ( #2070 )
...
* Reformat code
* Fix issue
* Fix AUTH packet serialization
2024-09-07 09:49:10 +02:00
christian
c4eb05105b
Update release notes
2024-08-24 12:04:24 +02:00
christian
bda21f0fcd
Fix build errors
2024-08-24 12:04:14 +02:00
980a5d0a6d
Improve performance and drop support for old frameworks ( #2068 )
...
* Remove WebSocket4Net extension library
* Remove UWP support
* Drop support for all old frameworks
* Update CI
* Update CI
* Update CI
* Update CI
* Remove obsolete code
* Set default protocol version to 5.0.0
* Remove obsolete tests
* Remove old dependencies
* Reset release notes
* Move server to dedicated project
* Fix unit tests
* Update and cleanup nuget packages
* Fix unit tests
Refactor code
* No longer throw exception when receiving non success CONNACK
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable nuget signing
* Enable code signing
* Enable code signing
* Enable code signing
* Fix client endpoint handling
* Improve CI
* Fix CI
* Fix CI
* Fix CI
* Fix CI
* Import changes from version 4
* Cleanup target frameworks and remove obsolete code
* Drop support for dotnet7.0
* Remove managed client
* Version5 auditmode (#2016 )
Added NuGet audit mode and some other settings to get informed about security issues.
* Address warnings from analyzers
* Support for ReadOnlySequence as payload (#2046 )
* use ReadOnlySequence as payload
* fix build
* fix build
* skip sign in forks
* remove unnecessary owner
* tests and extensions
* remove test
* simplify WritePacketBuffer, remove unused helper
* Adjust namespaces
* Fix build errors
* Import latest fixes from main branch
* Adjust namespaces
---------
Co-authored-by: SeppPenner <HansM2013@gmx.de >
Co-authored-by: Martin Regen <mregen@microsoft.com >
2024-08-24 11:47:21 +02:00
pigwing
e18a91a4b5
fix LoadingRetainedMessageAsync not exec ( #2025 )
...
because IHostedService StartAsync before startup Configure
see https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-8.0#ihostapplicationlifetime
2024-06-22 15:24:25 +02:00
drelidan7
b95d352236
Switch SubscribeAsync/UnsubscribeAsync to IEnumerable<string> ( #2026 )
...
The function currently requires an ICollection<string>, but doesn't actually depend on the ICollection<string> interface. Relax the requirement to be IEnumerable<string> for better flexibility.
2024-06-22 14:55:20 +02:00
simonthum
c5f4cf1f9b
Topic template extension maintenance ( #2022 )
...
* Topic templates: Ensure parameter values are checked for wildcard
* Topic templates: Complement extension methods
- add template.BuildMessage()
- add subscribeOptionsBuilder.WithTopicTemplate()
* Topic templates: switch some samples to use a topic template
The changes should be self-explanatory and are
intended to provide more examples.
* Topic templates: add README
2024-06-22 14:54:11 +02:00
Josua Jäger
8650002523
fix Managed_Client_Subscribe_Samples.Connect_Client sample: ( #2023 )
...
- Result was never logged (`bool subscribed`)
- `subscribed` was never set, as it was not passed as a reference but as a value.
2024-06-21 19:05:12 +02:00
Christian
25c1da6a21
Restore behavior of _Server_ and _Port_ in client options ( #2009 )
...
* Restore old server and port behavior
* Fix unit test
v4.3.6.1152
2024-05-23 19:32:22 +02:00
christian
4e3ede42c6
Increase version
2024-05-21 22:36:34 +02:00
Christian
918a3c8d8b
Restore old signing to get out hotfix release ( #2004 )
v4.3.5.1141
2024-05-19 16:39:49 +02:00
Christian
290419b3b6
[Client] Fix endpoint handling ( #1999 )
...
* Fix endpoint handling
* Fix different behavior for Mono framework.
* Restore old properties to avoid breaking changes
v4.3.5.1137
2024-05-19 12:18:12 +02:00
Christian
32b6146532
Setup nuget signing ( #2001 )
...
* Setup signing
* Update release notes
2024-05-18 20:21:09 +02:00
Christian
3a73ec21f7
[Client] Restore _WithConnectionUri_ methods ( #1998 )
...
Remove obsolete attributes
2024-05-17 17:49:33 +02:00
Christian
41d5b70344
Fix support for unix sockets ( #1995 )
...
* Add support for changing the protocol type on socket level
* Do not set NoDelay when not supported by protocol
* Update release notes
* Fix release notes
v4.3.4.1084
2024-05-14 18:09:33 +02:00
yzt and Christian
b4769778af
DISCONNECT packet should allow zero-length body ( #1994 )
...
* DISCONNECT packet should allow zero-length body
> [If the Remaining Length is less than 1 the value of 0x00 (Normal disconnection) is used.](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901208 )
* Update release notes and add comment
---------
Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com >
2024-05-14 18:08:54 +02:00
christian
473f9c31b1
Fix unit tests
2024-05-12 11:37:33 +02:00
christian
ae4f168066
Fix build
2024-05-12 11:23:03 +02:00
christian
c5578a93e8
Fix Unit Tests
2024-05-11 11:21:11 +02:00
christian
f4b2a10616
Fix build errors and several warnings
2024-05-09 18:39:08 +02:00