signalr2 1.0.4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 76

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 https://github.com/aspnet/SignalR

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()
      .withUrl('/chat')
      .configureLogging(signalr.LogLevel.Information)
      .build();

  connection.on('send', allowInterop((data) {
    print(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:


dependencies:
  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
Popularity:
Describes how popular the package is relative to other packages. [more]
52
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
76
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: web, other

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

Maintenance suggestions

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 signalr2.dart. Packages with multiple examples should use example/readme.md.

Dependencies

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