Datasnap.DSPlatform.TDBXServerComponent.BroadcastToChannel

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 BroadcastToChannel(const ChannelName: string; const Msg: TJSONValue): Boolean;

C++

bool __fastcall BroadcastToChannel(const System::UnicodeString ChannelName, System::Json::TJSONValue* const Msg);

Description

Sends a message to all registered clients.

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

See Also