Unit

ScSignalRHubConnection

 

Description

The TScHubConnection component implements the functionality of a SignalR client. A hub connection is used to invoke hub methods on the SignalR server.

Before invoking the hub methods, a connection must be established using the Start method. A connection can be dropped using the Stop method.

The TScHubConnection component can be configured to automatically reconnect using the ReconnectPolicy property.

To define the methods, the hub calls the Register method before establishing the connection. This method registers a handler that is invoked when the hub method is invoked.

To call a hub method on the server, use the Invoke or Send methods.

 

The TScHubConnection class raises the HubException exception when an error occurs while processing a message from the SignalR server.

 

See Also

Invoke

Register

Send

Start

Stop

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support