Giter VIP home page Giter VIP logo

signalr.reactive's Introduction

signalr.reactive's People

Contributors

cburgdorf avatar ianreah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

signalr.reactive's Issues

IJavaScriptProxyGenerator issue with SignalR 0.5.3

Hi,

SignalR.Reactive with SignalR 0.5.3 version doesn't work.

Getting error with GenerateProxy method not implemented by RxJsProxyGenerator (IJavaScriptProxyGenerator).

Do you plan to update this package soon ?

Thanks for your answer.

Cheers,
David

Error after upgrading to v1.0.1

Hi,

After upgrading from 0.5.X to last version (1.0.1), using extension method "ToClientside" failed.

I'm no longer able to publish event to 1 user (ConnectionId).

Using AspNet.SignalR >= v1.0 I think you should use clients.Client[clientName] within the following RxHelper method:
public static dynamic GetHubClients(dynamic clients, string clientName)
{
return string.IsNullOrEmpty(clientName) ? clients.All : clients[clientName];
}

Hope you will be able to fix it quickly because I have already update SignalR to last version.

I'm sorry i can't do it by myself because i'm quite new to GitHub and i don't have VS 2012.
I'm still using VS 2010.

Regards,
David

Consider removing the Observable<THub> Extension that takes an expression

While it is cool as it stands out for itself, there is actually no reason why you should manually add an Observable property to the hub just to use it as an typesafe way for the mapping. In an earlier version the proxy generation depended on the Observable property to be there. However, thats no longer the case. We should consider to remove it.

Create serverside ReactiveHub with Observe<T> method

It would be cool if we could say clientside

$('#inputTextArea')
    .toObservable('keydown')
    .toServerside("ConverterHub", "IncomingText");

converterHub
    .observe("OutgoingText")
    .subscribe(function(char){
         $('#outputTextArea').append(char);
    });

And then serverside:

class ConverterHub: ReactiveHub
{
     public ConverterHub() 
     {
         Observe<string>("IncomingText")
         .Select(x => x.toUpper())
         .ToClientside().Observable<ConverterHub>("OutgoingText");
     }
}

Error when running with the latest (v2.0.20921) RxJS library

To reproduce:

  • Update the demo project to v2.0.20921 of the RxJS library
  • Run the DragDemo
  • Drag the shape

You'll get an "Uncaught TypeError: Converting circular structure to JSON" when SignalR tries to JSON.stringify the hub object's subject field.

It looks like the Rx.Subject from the latest version of the library now has an 'observers' field which has the circular reference.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.