Fixed SignalR tests

This commit is contained in:
Igor Oleinikov
2013-12-06 14:54:16 +04:00
parent ad647a0115
commit 6eac295fa2
+11 -11
View File
@@ -51,17 +51,17 @@ function test_connection() {
}
interface MyHubConnection extends HubConnection {
someState: string;
SomeFunction: Function;
someState: string;
SomeFunction: Function;
// My Hubs Client functions:
client: {
addMessage: (message: string) => void;
}
// My Hubs Server function:
server: {
send(message: string);
}
// My Hubs Client functions:
client: {
addMessage: (message: string) => void;
};
// My Hubs Server function:
server: {
send(message: string);
};
}
interface SignalR {
@@ -110,7 +110,7 @@ function test_hubs() {
.done(function (result) {
console.log('The result is ' + result);
});
proxy.on('addMessage', function (msg) {
proxy.on('addMessage', function (msg?) {
console.log(msg);
});
var connection = $.hubConnection('http://localhost:8081/');