SignalR Core Client for Delphi & C++ Builder | eSeGeCe

ASP.NET Core SignalR Client

Connect to ASP.NET Core SignalR hubs from Delphi/C++Builder. Speaks the JSON hub protocol with negotiated WebSocket transport.

TsgcWSAPI_SignalRCore

Client for the ASP.NET Core SignalR protocol — handshake (json hub protocol), invocation messages, streaming, completion and the keep-alive ping.

Component class

TsgcWSAPI_SignalRCore

Platforms

Windows, macOS, Linux, iOS, Android

Edition

Standard / Professional / Enterprise

Negotiate, handshake, invoke

Pair with TsgcWebSocketClient pointing at the hub URL, the component negotiates and performs the JSON-protocol handshake, then invoke methods.

uses
  sgcWebSocket, sgcWebSocket_API_SignalRCore;

var
  WSClient: TsgcWebSocketClient;
  Hub: TsgcWSAPI_SignalRCore;
begin
  WSClient := TsgcWebSocketClient.Create(nil);
  WSClient.URL := 'wss://signalr.example.com/chatHub';

  Hub := TsgcWSAPI_SignalRCore.Create(nil);
  Hub.Client := WSClient;

  WSClient.Active := True;

  // Server method "SendMessage" with two args
  Hub.Invoke('SendMessage', ['alice', 'hello']);
end;
// uses: sgcWebSocket, sgcWebSocket_API_SignalRCore
TsgcWebSocketClient *WSClient = new TsgcWebSocketClient(this);
WSClient->URL = "wss://signalr.example.com/chatHub";

TsgcWSAPI_SignalRCore *Hub = new TsgcWSAPI_SignalRCore(this);
Hub->Client = WSClient;

WSClient->Active = true;

What's inside

Implements the SignalR Core JSON hub protocol on top of TsgcWebSocketClient.

Negotiate + handshake

Performs the HTTP negotiate call (when needed) and sends the {"protocol":"json","version":1} handshake frame, parsing the server's ack before delivering OnConnect.

Invocation messages

Invoke(target, args) sends a type:1 invocation envelope and tracks the invocationId. OnSignalRCoreResult fires with the typed return value when a completion arrives.

Streaming receive

Supports server-side IAsyncEnumerable / streaming hubs — StreamInvocation opens a stream and OnSignalRCoreStreamItem delivers each item before the final completion.

Keep-alive ping

SignalR Core uses type:6 ping messages on a 15-second cadence; the component sends and answers them automatically.

Auth tokens

Pass a Bearer token via the underlying client's QueryString (?access_token=...) or custom Authorization header — SignalR Core supports both.

Bidirectional

Bind OnSignalRCoreClientCallback for server-pushed method invocations. Reply to client-method calls by returning the parsed JSON arguments from your handler.

Specifications & references

Authoritative sources for the protocol this component implements.

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Online Help — API_SignalRCore Full property, method and event reference for this component.
Free Trial — sgcWebSockets Download the trial package and connect to .NET Core / .NET 5+ SignalR hubs from Delphi.
Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only.
User Manual (PDF) Comprehensive manual covering every component in the library.
Best value: All-AccessEvery eSeGeCe product, Premium Support included, from €1,059/year.
See All-Access pricing

Ready to Talk to ASP.NET Core SignalR?

Download the free trial and integrate ASP.NET Core SignalR hubs into your Delphi applications.