signalr2 1.0.4

  • Installing
  • Versions
  • 72

signalr2 #

Incredibly simple real-time web for ASP.NET Core 2.1 This is an interop library for the @aspnet/signalr package. Find more Information at

Currently in sync with the release 1.0.4 from 2018-10-17.

Usage #

Add a <script> tag to your index.html and point it to the current SignalR JavaScript file distributed with the current release of this library:

<script src="packages/signalr2/dist/signalr.min.js"></script>

A simple usage example:

import 'dart:async';
import 'dart:js';
import 'package:signalr2/signalr2.dart' as signalr;

Future<Null> main() async {
  var connection = new signalr.HubConnectionBuilder()

  connection.on('send', allowInterop((data) {

  await connection.start();

  new Timer.periodic(const Duration(seconds: 1), (r) {
    connection.send('send', 'Hi');

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

1.0.2 #

  • Catching up with the current release (no changes to the code at all)

1.0.0 #

  • Catching up with the current release

1.0.0-preview2-final #

  • Catching up with the current release

1.0.0-alpha1-final #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  signalr2: ^1.0.4

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:signalr2/signalr2.dart';
Version Uploaded Documentation Archive
1.0.4 Nov 21, 2018 Go to the documentation of signalr2 1.0.4 Download signalr2 1.0.4 archive
1.0.3+1 Nov 21, 2018 Go to the documentation of signalr2 1.0.3+1 Download signalr2 1.0.3+1 archive
1.0.3 Nov 21, 2018 Go to the documentation of signalr2 1.0.3 Download signalr2 1.0.3 archive
1.0.2 Oct 31, 2018 Go to the documentation of signalr2 1.0.2 Download signalr2 1.0.2 archive
1.0.0 May 31, 2018 Go to the documentation of signalr2 1.0.0 Download signalr2 1.0.0 archive
1.0.0-preview2-final Apr 27, 2018 Go to the documentation of signalr2 1.0.0-preview2-final Download signalr2 1.0.0-preview2-final archive
1.0.0-alpha1-final Sep 15, 2017 Go to the documentation of signalr2 1.0.0-alpha1-final Download signalr2 1.0.0-alpha1-final archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14


Detected platforms: web, other

Primary library: package:signalr2/signalr2.dart with components: js.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and signalr2.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
func2 ^2.0.0 2.0.1
js ^0.6.1+1 0.6.1+1