signal_dart 0.0.4

  • Installing
  • Versions
  • 44


A package to help use SignalR JS client with Dart


//Equivalent to var hc = $.hubConnection(url,options);
HubConnection hc = new HubConnection(url:'http://localhost:55780/signalr');
//Equivalent to $.connection.testHub on default local server
HubProxy proxy = hc.createHubProxy('testHub');
 Equivalent to
 proxy.on('broadcastMessage', function (name, message) {
proxy.on('broadcastMessage', (String name,String message) {
    document.querySelector('#messageList').appendHtml('<li>' + name + ' - ' + message + '</li>');

Use this package as a library

1. Depend on it

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

  signal_dart: ^0.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:signal_dart/signal_dart.dart';
Version Uploaded Documentation Archive
0.0.4 Mar 3, 2016 Go to the documentation of signal_dart 0.0.4 Download signal_dart 0.0.4 archive
0.0.3 Dec 17, 2014 Go to the documentation of signal_dart 0.0.3 Download signal_dart 0.0.3 archive
0.0.1 Jul 5, 2014 Go to the documentation of signal_dart 0.0.1 Download signal_dart 0.0.1 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 Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8


Detected platforms: web, other

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

Issues and suggestions


Changelog entries help clients to follow the progress in your code.

Add SDK constraint in pubspec.yaml.

For information about setting SDK constraint, please see

Package is too old.

The package was released more than two years ago.

The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Format lib/hub_connection.dart.

Run dartfmt to format lib/hub_connection.dart.

Format lib/hub_proxy.dart.

Run dartfmt to format lib/hub_proxy.dart.

Format lib/invoke_result.dart.

Run dartfmt to format lib/invoke_result.dart.

Format lib/signal_dart.dart.

Run dartfmt to format lib/signal_dart.dart.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use signal_dart.dart.


Package Constraint Resolved Available
Dev dependencies
browser any