signal_dart 0.0.1 copy "signal_dart: ^0.0.1" to clipboard
signal_dart: ^0.0.1 copied to clipboard

outdatedDart 1 only

A package to help use SignalR JS client with Dart

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

Jquery version #

jQuery 2.x needs to be used.

This id due to how Dart handles function calls in its js interop library and how jquery 1.6.4 wrote 'promises' using done() and querying the 'arguments' property within the JS function.

0
likes
0
points
6
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

A package to help use SignalR JS client with Dart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, browser, json_client

More

Packages that depend on signal_dart