It did not make sense to me that the client was divided into two .pas-files, as they were both always required and had circular references. As such, this change removes StompTypes.pas, and combines its features into StompClient.pas, which remains the sole unit that one needs to include to use this system.
Also, I've isolated references to TStompClient and other TObject, so one can only use the StompUtils and only operate on interfaces.
All in all, this should create a cleaner interface when working with the StompClient.
I also added TBytes messaging, for when communication cannot be translated into strings.
All examples and demos have been updated to match, and the build.py script yields no warnings nor errors.
It did not make sense to me that the client was divided into two .pas-files, as they were both always required and had circular references. As such, this change removes
StompTypes.pas
, and combines its features intoStompClient.pas
, which remains the sole unit that one needs to include to use this system.Also, I've isolated references to
TStompClient
and otherTObject
, so one can only use theStompUtils
and only operate on interfaces.All in all, this should create a cleaner interface when working with the StompClient.
I also added
TBytes
messaging, for when communication cannot be translated into strings.All examples and demos have been updated to match, and the
build.py
script yields no warnings nor errors.