mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed SignalR tests
This commit is contained in:
+11
-11
@@ -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/');
|
||||
|
||||
Reference in New Issue
Block a user