Datasnap.DSServer.TDSServer.BroadcastObject
Delphi
function BroadcastObject(const ChannelName: string; const Msg: TObject): Boolean; overload;
function BroadcastObject(const ChannelName: string; const CallbackId: string;
const Msg: TObject): Boolean; overload;
C++
bool __fastcall BroadcastObject(const System::UnicodeString ChannelName, System::TObject* const Msg)/* overload */;
bool __fastcall BroadcastObject(const System::UnicodeString ChannelName, const System::UnicodeString CallbackId, System::TObject* const Msg)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSServer.pas Datasnap.DSServer.hpp |
Datasnap.DSServer | TDSServer |
Description
Sends an object to all client callbacks.
The BroadcastObject method sends an object to all client callbacks. BroadcastObject has two overloads. Call the first overload with the ChannelName and the Msg parameters.
The second overload sends an object to all client callbacks with a given registered callback identifier. For this purpose, an additional CallbackId parameter is required in the call.
ChannelName represents the name of the channel callback.
CallbackId is a string representing the identifier of the callback.
Msg is a TObject containing any object to be broadcasted.