cburgdorf/SignalR.Reactive — Issue #1: Create serverside ReactiveHub with Observe<T> method
Author: cburgdorf
Created: 2012-03-08 17:19:35+00:00
State: open

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 MyHub()
{
Observe("IncomingText")
.Select(x => x.toUpper())
.ToClientside().Observable("OutgoingText");
}
}