signal_dart 0.0.4

  • README.md
  • Installing
  • Versions
  • 56

SignalDart

A package to help use SignalR JS client with Dart

###Example###

//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>');
  });

1. Depend on it

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


dependencies:
  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

Analysis

This feature is new.
We welcome feedback.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
55
Health:
Code health derived from static analysis. [more]
82
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
18
Overall score:
Weighted score of the above. [more]
56

Platforms

Detected platforms: web

All libraries agree

Suggestions

  • Maintain CHANGELOG.md.

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

Dependencies

Package Constraint Resolved Available
Dev dependencies
browser any