danieleteti / delphistompclient

STOMP client for Embarcadero Delphi and FreePascal.
141 stars 64 forks source link

Rewrote client into one Unit file #19

Closed svip closed 7 years ago

svip commented 7 years ago

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.