Merge pull request #8678 from jamesmoey/bugfix/rabbit.js

Update rabbit.js definition.
This commit is contained in:
Mohamed Hegazy
2016-06-26 15:50:11 -07:00
committed by GitHub
+2
View File
@@ -22,6 +22,7 @@ declare module "rabbit.js" {
persistent?: any;
topic?: any;
task?: any;
routing?: any;
}
export interface Socket {
@@ -43,6 +44,7 @@ declare module "rabbit.js" {
export class SubSocket extends stream.Readable implements Socket {
constructor(channel: string, opts: SocketOptions);
connect(source: string, callback?: Function): any;
connect(source: string, topic?: string, callback?: Function): any;
setsockopt(opt: string, value: string): any;
close(): any;
}