Skip to content

Microsoft.AspNet.SignalR.SystemWeb

reference
1 min readUpdated

Kind: Service

Source: Pams/API/Pams.API/Pams.API.csproj (line 1)

Part of: Pams

NuGet package dependency

Microsoft.AspNet.SignalR.SystemWeb is a NuGet package dependency for the legacy ASP.NET application defined in Pams.API.csproj. It provides SignalR integration with the System.Web hosting model so server hubs can maintain real-time connections with browser clients.

Diagram

mermaid
sequenceDiagram
    participant Browser
    participant SignalRClient
    participant SystemWeb as ASP.NET System.Web
    participant Hub as SignalR Hub

    Browser->>SignalRClient: Start connection
    SignalRClient->>SystemWeb: Negotiate SignalR transport
    SystemWeb->>Hub: Route hub invocation
    Hub-->>SystemWeb: Publish message
    SystemWeb-->>SignalRClient: Send real-time update
    SignalRClient-->>Browser: Handle update

Usage

typescript
declare const $: any;

const connection = $.hubConnection("/");
const notificationsHub = connection.createHubProxy("notificationsHub");

notificationsHub.on("notificationReceived", (message: string) => {
  console.log("Notification received:", message);
});

connection.start().done(() => {
  notificationsHub.invoke("subscribe");
});

AI Coding Instructions

  • Treat this package as a server-side dependency for legacy ASP.NET projects that use System.Web.
  • Configure SignalR hubs and routes in the ASP.NET application startup path before browser clients connect.
  • Keep hub names and client event names aligned between server hub methods and JavaScript proxy calls.
  • Use the SignalR browser client compatible with the server package version referenced by Pams.API.csproj.

Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Injected or called by (1)

  • Pams.APIPams/API/Pams.API/Pams.API.csproj:1

Was this page helpful?

Download as PDF