Frame now implements Message as it should

This commit is contained in:
Stefan Erichsen
2018-02-08 15:53:09 +01:00
parent 9a5b1dbfe0
commit 40fbcc8c28
+6 -1
View File
@@ -51,9 +51,14 @@ export interface Message {
nack(headers?: {}): any;
}
export class Frame {
export class Frame implements Message {
command: string;
headers: {};
body: string;
constructor(command: string, headers?: {}, body?: string);
ack(headers?: {}): any;
nack(headers?: {}): any;
toString(): string;
sizeOfUTF8(s: string): number;
unmarshall(datas: any): any;