Search packages, repositories and app categories

Package detailsv1.1.2

signalr_core

ASP.NET Core SignalR Client written for Dart that is platform-independent, and can be used on both the command-line and the browser.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
6.1K
Likes
170
Pub points
130

Install package

flutter pub add signalr_core

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

signalr_core is a platform-independent Dart client for ASP.NET Core SignalR, enabling real-time communication in Flutter and other Dart applications. It supports all major platforms—including mobile, web, and desktop—allowing seamless integration of live updates, chat features, and event-driven interactions. The package is designed to work consistently across environments, whether running in the browser or on native devices. It provides reliable connectivity with automatic reconnection and message handling, making it ideal for dynamic, responsive applications.

Use cases

  • Real-time chat applications
  • Live data dashboards
  • Collaborative editing tools
  • IoT device monitoring
  • Game state synchronization

Key features

  • Cross-platform compatibility
  • Automatic reconnection
  • WebSocket-based communication
  • Simple API for hub interaction
  • Supports both command-line and browser environments

Suitable for

  • Developers building real-time apps in Flutter
  • Teams needing consistent behavior across platforms
  • Applications requiring low-latency updates
  • Projects using ASP.NET Core SignalR backend
  • Full-stack Dart developers

Considerations

  • Requires an ASP.NET Core SignalR server
  • Limited to SignalR protocol specifics
  • May need additional error handling in complex scenarios
  • Not suitable for non-real-time use cases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Introduction

ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push content to clients instantly. It's platform-independent, and can be used on both the command-line and the browser.

Example

final connection = HubConnectionBuilder().withUrl('http://localhost:5000/chatHub', 
    HttpConnectionOptions(
        logging: (level, message) => print(message),
    )).build();
 
await connection.start();

connection.on('ReceiveMessage', (message) {
    print(message.toString());
});

await connection.invoke('SendMessage', args: ['Bob', 'Says hi!']);

Categories

Dependencies

Dependency list 7 items

Source repository

Projects using this package