Fixed ng-stomp definitions

This commit is contained in:
Lukasz Potapczuk
2015-11-24 12:22:48 +01:00
parent 612f58ac6a
commit 4bc8a55f65
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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) {
+3 -1
View File
@@ -17,7 +17,7 @@ interface ngStomp {
disconnect: (callback:()=>void) => angular.IHttpPromise<any>;
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 {