
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.