Datasnap.DSClientRest.TDSRestClientChannel.Broadcast

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Broadcast(AMessage: TJSONValue; AChannelName: string = ''): Boolean;

C++

bool __fastcall Broadcast(System::Json::TJSONValue* AMessage, System::UnicodeString AChannelName = System::UnicodeString());

Properties

Type Visibility Source Unit Parent
function public
Datasnap.DSClientRest.pas
Datasnap.DSClientRest.hpp
Datasnap.DSClientRest TDSRestClientChannel


Description

Broadcasts a message to all registered callbacks of the server channel.

The Broadcast method broadcasts a message to all registered callbacks of the server channel that this client channel is registered with. The AMessage parameter specifies the message to be broadcast.

Broadcast returns True if the message was sent successfully to the server (but not necessarily to all callbacks), False otherwise.

See Also