Update rabbit.js definition.

This commit is contained in:
James Moey
2016-03-22 13:58:57 +11:00
parent 6766ed1d0f
commit 03f28267c5
+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;
}