An open API service indexing awesome lists of open source software.

https://github.com/layoric/signaldart

A package to help use SignalR JS client with Dart
https://github.com/layoric/signaldart

Last synced: about 1 year ago
JSON representation

A package to help use SignalR JS client with Dart

Awesome Lists containing this project

README

          

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('

  • ' + name + ' - ' + message + '
  • ');
    });
    // Or proxy.onAsync...
    ```