In the current code organization, adapters do not make much sense. It is confusing what adapters are as a term adapter is quite broad and in many cases its role is solely to forward calls from Messenger to the transport layer.
This PR removes adapters completely and introduces messageProcessor which is responsible for encapsulating logic related to handling received messages as well as encoding, wrapping and encrypting outgoing messages.
messageProcessor mostly took message-related methods and there is no much refactoring. That would be a separate PR later.
In the current code organization, adapters do not make much sense. It is confusing what adapters are as a term adapter is quite broad and in many cases its role is solely to forward calls from
Messenger
to the transport layer.This PR removes adapters completely and introduces
messageProcessor
which is responsible for encapsulating logic related to handling received messages as well as encoding, wrapping and encrypting outgoing messages.messageProcessor
mostly took message-related methods and there is no much refactoring. That would be a separate PR later.Todo