Datasnap.DSPlatform.TDBXServerComponent.BroadcastObjectToChannel

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSPlatform.pas
Datasnap.DSPlatform.hpp
Unit: Datasnap.DSPlatform
Parent: TDBXServerComponent

Delphi

function BroadcastObjectToChannel(const ChannelName: string; const Msg: TObject): Boolean;

C++

bool __fastcall BroadcastObjectToChannel(const System::UnicodeString ChannelName, System::TObject* const Msg);

Description

Sends a TObject message to all registered clients.

BroadcastObjectToChannel sends a message to all clients who have registered a client channel/callback - with ConsumeClientChannel, for example - specifying, at the same time, a ChannelName in the registration process that matches the ChannelName of this Broadcast call.

See Also