signalr_netcore
1.4.4, released a year ago by an unverified publisher
Flutter client for ASP.NET Core SignalR supporting WebSocket, SSE, LongPolling and MessagePack.
What it does
Provides a SignalR client that can invoke hub methods and receive server callbacks. Supports automatic reconnect, multiple transport protocols and optional MessagePack serialization.
AI-written summary of version 1.4.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- Real‑time communication with an ASP.NET Core SignalR server
- Need client‑side streaming or auto‑reconnect
- Cross‑platform apps (mobile, desktop, web) requiring SignalR
Skip it when
- Only simple REST/HTTP calls are needed
- Targeting platforms where SignalR headers aren’t supported without work‑arounds
Strengths
- Multiple transports (WebSocket, SSE, LongPolling)
- Automatic reconnect and streaming support
- MessagePack protocol for efficient payloads
- Works on Android, iOS, Windows, macOS, Linux, and Web
Weaknesses
- Limited to ASP.NET Core SignalR servers
- Web platform header handling can be tricky
- Documentation focuses on basic usage, advanced scenarios sparse
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 6
Add the package, import signalr_client, configure HubConnectionBuilder with URL and optional HttpConnectionOptions (e.g., logging, token).
import 'package:signalr_netcore/signalr_client.dart';
final hubConnection = HubConnectionBuilder()
.withUrl('https://example.com/hub')
.configureLogging(Logger('SignalR'))
.build();
await hubConnection.start();
hubConnection.on('receiveMessage', (args) => print(args));Alternatives
Packages that do the same job and could replace signalr_netcore.
- dart_mcp
A Dart library for building Model Context Protocol (MCP) servers and clients.
87Compare - signalr_flutter
Flutter plugin for ASP.NET SignalR client
49Compare - webdav_client_plus
A simple WebDAV client for Dart and Flutter supporting file operations and extensions.
75Compare - vmodal_sdk_flutter
Typed VModal API client for Flutter to upload videos and search moments by meaning.
67Compare
Works with
Packages commonly used together with signalr_netcore: ones it builds on, ones built on it, and its own family.
- loggingsignalr_netcore depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- web_socket_channelsignalr_netcore depends on itCross‑platform WebSocket channel wrapper for Dart
- tuplesignalr_netcore depends on itProvides immutable tuple classes for grouping values.
- sse_channelsignalr_netcore depends on itWraps Server‑Sent Events as a StreamChannel for Dart IO and web
- message_pack_dartsignalr_netcore depends on itBinary MessagePack serializer/deserializer for Dart and Flutter.