From 4bc8a55f65b66a6855e009299287046a16ddd25b Mon Sep 17 00:00:00 2001 From: Lukasz Potapczuk Date: Tue, 24 Nov 2015 12:22:48 +0100 Subject: [PATCH] Fixed ng-stomp definitions --- ng-stomp/ng-stomp-test.ts | 3 ++- ng-stomp/ng-stomp.d.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ng-stomp/ng-stomp-test.ts b/ng-stomp/ng-stomp-test.ts index e27b1bd23..4f9092c20 100644 --- a/ng-stomp/ng-stomp-test.ts +++ b/ng-stomp/ng-stomp-test.ts @@ -9,12 +9,13 @@ module ngStompTesting { class test { constructor(private ngstomp:ngStomp) { var connectHeaders ={ - "Lol": "user", + "Auth": "user", "Accept": "lol" }; ngstomp.connect('/endpoint', connectHeaders) + // frame = CONNECTED headers .then(function (frame) { diff --git a/ng-stomp/ng-stomp.d.ts b/ng-stomp/ng-stomp.d.ts index df6397421..314f36028 100644 --- a/ng-stomp/ng-stomp.d.ts +++ b/ng-stomp/ng-stomp.d.ts @@ -17,7 +17,7 @@ interface ngStomp { disconnect: (callback:()=>void) => angular.IHttpPromise; - subscribe: (destination:string, callback:Function, headers?:Headers, scope?:any) => any; + subscribe: (destination:string, callback:(payload:string, headers:Headers, res:Function)=>void, headers?:Headers, scope?:any) => any; unsubscribe: () => any; @@ -32,3 +32,5 @@ interface ngStomp { + +