Skip to content

Commit

Permalink
fix: close event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Jan 20, 2021
1 parent c1fc8fa commit 3439a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ws/src/Protocol/GQL/GQLProtoLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class GQLProtoLayer {
constructor(client: GQLClientConnection, factory: GQLSubscribeFunction) {
this.#client = client;
this.#subscribe = factory;
this.#client.on("close", this.unsubscribeAll);
this.#client.on("close", () => this.unsubscribeAll());
}

public async handle(operation: GQLOperationMessage): Promise<void> {
Expand Down

0 comments on commit 3439a72

Please sign in to comment.