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 { + +