
Product
Introducing Socket MCP for Claude Desktop
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Blazor.ConnectionStatusDetector
Advanced tools
This package provides the ConnectionStatusDetectorService that provides the ConnectionStatusChanged event that notifies changes in the connection status on the client side. Apart from the event, the service has a property to query the connection status. In addition, the Connection component is provided which renders different fragments depending on the connection status.
This package provides the ConnectionStatusDetectorService that provides the ConnectionStatusChanged event that notifies changes in the connection status on the client side. Apart from the event, the service has the property IsOnline to query the connection status.
In addition, the Connection component is provided which renders different fragments depending on the connection status.
Add the package to your project:
dotnet add package Blazor.ConnectionStatusDetector --version 1.0.0
To use it, link to connection.js in your index.html file:
<script src="_content/Blazor.ConnectionStatusDetector/connection.js"></script>
Then register the service in yout Program.cs:
services.AddSingleton<IConnectionStatusDetectorService, ConnectionStatusDetectorService>();
To render different fragments based on the connection status, import the namespace in you _Imports.razor file:
@using Blazor.ConnectionStatusDetector
add a Connection component in your razor files, like:
<Connection>
<Online>
<h1 style="color: green">Online</h1>
</Online>
<Offline>
<h1 style="color: red">Offline</h1>
</Offline>
</Connection>
FAQs
This package provides the ConnectionStatusDetectorService that provides the ConnectionStatusChanged event that notifies changes in the connection status on the client side. Apart from the event, the service has a property to query the connection status. In addition, the Connection component is provided which renders different fragments depending on the connection status.
We found that blazor.connectionstatusdetector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.