signal_dart 0.0.4

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: 

2. Install it

You can install packages from the command line:

$ pub get

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

About

A package to help use SignalR JS client with Dart

Author

Email layoric@gmail.com Darren Reid

Homepage

github.com/Layoric/SignalDart

Documentation

www.dartdocs.org/documentation/signal_dart/0.0.4/

Source code (hyperlinked)

www.crossdart.info/p/signal_dart/0.0.4/

Uploader

layoric@gmail.com

Share