Class SignalR

Assembly: redb.Route.SignalR.dll

Fluent entry point for SignalR endpoints.

// Consumer — listen for SignalR connections (hub server):
.From(SignalR.Hub("0.0.0.0:5000/chatHub").InOut().MessagePack())

// Producer (client) — connect to a remote SignalR hub:
.To(SignalR.Connect("api.example.com:5000/chatHub").Method("Send").Ssl())

// Producer (server) — broadcast to connected clients via local hub:
.To(SignalR.Broadcast("0.0.0.0:5000/chatHub").Method("Notify").Group("room1"))

public static class SignalR

Inheritance

Object→SignalR

Methods

Broadcast(string)

Broadcast to clients of a local hub (producer, server mode).

public static SignalRBuilder Broadcast(string hostPortPath)

Connect(string)

Connect to a remote SignalR hub (producer, client mode).

public static SignalRBuilder Connect(string hostPortPath)

Hub(string)

Listen for SignalR connections — start a hub server (consumer).

public static SignalRBuilder Hub(string hostPortPath)