Christian Kratky
d464bfb7c5
Fix connect and disconnect event flow.
2020-04-04 01:01:37 +02:00
Christian Kratky
ad128c7889
Improve socket handling.
2020-04-03 22:52:55 +02:00
Christian Kratky
0ca4c88e69
Merge branch 'master' into feature/low_level_client
2020-04-01 23:01:03 +02:00
Christian Kratky
04ccdcd562
Add low level client.
2020-04-01 20:43:00 +02:00
Christian Kratky
0653b89701
Fix broken unit tests.
2020-03-26 22:33:30 +01:00
Christian
2e7d074174
Merge pull request #833 from JanEggers/bugfixes
...
Bugfixes
2019-12-28 20:28:38 +01:00
JanEggers
14419e4d63
fixed clients overlapping from one test to another by:
...
- adding client and server wrappers to verify the clientid starts with the testname
- adding disposable baseclass
- clear disconnect handler from client so it does not try to reconnect after it is disposed
- moved code from dispose to cleanup in case it is called in a stop method as dispose may only be called once while start / stop may be called multiple times
2019-12-20 15:37:23 +01:00
Federico Di Gregorio
f949d54aef
Added IMqttRetainedMessagesManager
...
* Added interface IMqttRetainedMessagesManager to allow for different
retained messages manager implementations. The interface copies almost
exactly the current MqttRetainedMessagesManager implementation.
* Added IMqttRetainedMessagesManager.Start() to configure the provided
IMqttRetainedMessagesManager outside the constructor. This method returns
Task because some implementations that use external storage may be slow on
initialization (e.g., connect to a database).
* Modified MqttRetainedMessagesManager to implement new interface.
2019-12-17 11:57:17 +01:00
Christian
0950dfbb8b
Merge pull request #786 from llrosa/debugFixClientId
...
Fix for #785 - Skip client disconnection process if unauthorized
2019-11-03 13:23:23 +01:00
Lucas Rosa
4105beb7e6
Some more cleaning up:
2019-10-29 12:55:57 -03:00
Lucas Rosa
5c25905510
Clean up
2019-10-29 12:48:04 -03:00
Lucas Rosa
e3f6b579b2
Working PoC
2019-10-29 12:32:20 -03:00
Lucas Rosa
c467c9c818
Debugging duplicated client id issue
2019-10-29 11:44:41 -03:00
Benjamin Crosnier
1a41415dd1
Allow AssignedClientIdentifier in ClientConnected, ClientDisconnected and ConnectedHandler - Fixes chkr1011/MQTTnet#745
2019-08-19 10:41:28 +02:00
Christian Kratky
6c8db47e25
Remove dedicated values from contexts and only provide session items.
2019-07-05 18:28:18 +02:00
Christian Kratky
3eb5e82d10
Expose connect packet in application message interceptor and subscription interceptor.
2019-07-04 23:06:37 +02:00
Christian Kratky
6ee3d1640f
Improve logging.
2019-06-23 15:57:12 +02:00
Christian Kratky
bd665c3d56
Expose more properties to connection validator context.
2019-06-14 20:37:06 +02:00
Christian Kratky
60c6074953
Expose client certificate at MQTT connection validator. Make DualMode optional.
2019-06-06 19:31:43 +02:00
Christian Kratky
6ed3b0cedd
Add ClientId for application messages published by the server.
2019-04-24 21:37:29 +02:00
Christian Kratky
20a7579156
Fix issues in ApplicationMessageInterceptor.
2019-04-23 14:48:51 +02:00
Christian Kratky
6399172582
Improve connection disposal.
2019-04-22 10:50:47 +02:00
Christian Kratky
5c903e6fbf
Improve connection handling.
2019-04-20 21:12:30 +02:00
Christian Kratky
61b10a8b56
Add extension methods.
2019-04-07 19:58:01 +02:00
Christian Kratky
2267770a72
Make internal message of server async.
2019-04-02 21:51:26 +02:00
Christian Kratky
11a5b5a080
Add queue with async support to free up threads.
2019-03-22 23:12:37 +01:00
Christian Kratky
562a5304f6
Add flag for secure connections.
2019-03-10 19:52:55 +01:00
Christian Kratky
03bfc5f00b
Refactor event handler namings.
2019-03-08 23:47:51 +01:00
Christian Kratky
8708609498
Add more function mappings for MQTTnet Server.
2019-03-06 22:42:00 +01:00
Christian
3b02a5f6aa
Fix NullRefException when cancelling the server.
2019-02-23 10:40:17 +01:00
Christian Kratky
6a2bded181
Refactor session and connection handling in server. Fix QoS level 2 issues.
2019-01-27 11:15:32 +01:00
Christian Kratky
96a67579e2
Improve session handling.
2019-01-01 19:18:54 +01:00
Christian Kratky
b527059b72
Fix session takeover.
2018-12-27 23:05:57 +01:00
Christian Kratky
c0507fcc55
Refactor interceptors etc. to support async.
2018-12-27 22:41:41 +01:00
Christian Kratky
cc113a6c34
Refactor namespaces.
2018-12-20 20:53:29 +01:00
Christian Kratky
0dba57fe75
Cleanup code.
2018-12-09 21:04:14 +01:00
Christian Kratky
6483f896c1
Merge from develop.
2018-12-09 20:48:46 +01:00
Christian Kratky
86c348df58
Stop existing sessions before takeover from another client.
2018-12-02 21:50:16 +01:00
Christian Kratky
b091fee554
Reset the keep alive monitor if a session is being resumed from a different (or same) client.
2018-12-01 11:00:00 +01:00
Christian Kratky
ccc275902f
Fix wrong retain flag when distributing messages.
2018-11-28 21:35:50 +01:00
Christian Kratky
017f17a6b1
Fix UnitTests.
2018-11-24 20:19:16 +01:00
Christian Kratky
7baff7c080
Refactor property definition for packets.
2018-11-23 22:50:44 +01:00
Christian Kratky
3db22eea51
Remove dedicated V3 messages.
2018-11-18 22:04:39 +01:00
Christian Kratky
ace25af0e8
Added package properties.
2018-11-16 23:11:26 +01:00
Christian Kratky
fed16d7710
Merge from develop.
2018-11-16 22:16:21 +01:00
Christian Kratky
aad3ab903f
Expose retained messages to server interface.
2018-10-19 23:56:32 +02:00
Christian Kratky
5a59cd278c
Add serializer adapter.
2018-08-06 20:36:15 +02:00
Christian
ac36c9c406
Merge branch 'develop' into ServerShutdown
2018-07-26 14:45:25 +02:00
Christian Kratky
6b9015a928
Fix order of ClientConnected and ClientDisconnected events.
2018-07-25 20:18:27 +02:00
Christian Kratky
603639126e
Fix issue in processing of server messages.
2018-07-24 13:49:23 +02:00