Datasnap.DSClientRest.TDSRestClientChannel.Broadcast

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

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

C++

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


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