DeveloppeurPascal / Socket-Messaging-Library

A client / server messaging library to use with TCP sockets in Delphi or C++Builder (one day in the future)
https://socketmessaging.developpeur-pascal.fr
GNU Affero General Public License v3.0
18 stars 3 forks source link

subscribe/unsubscribe to receiving a message by its class and not its ID #64

Open DeveloppeurPascal opened 1 year ago

DeveloppeurPascal commented 1 year ago

TOlfReceivedMessageEvent = procedure(Const ASender : TOlfSocketMessagingServerConnectedClient; Const AMessage: T) of object;

procedure SubscribeToMessage(aReceivedMessageEvent: TOlfReceivedMessageEvent);

procedure UnsubscribeToMessage(aReceivedMessageEvent: TOlfReceivedMessageEvent);