Skip to content

Commit 499bd27

Browse files
committed
Rename function
1 parent 6dbb024 commit 499bd27

File tree

2 files changed

+2
-2
lines changed
  • packages/api-graphql/src

2 files changed

+2
-2
lines changed

packages/api-graphql/src/Providers/AWSAppSyncEventsProvider/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class AWSAppSyncEventProvider extends AWSWebSocketProvider {
7878
return super.publish(options, customUserAgentDetails);
7979
}
8080

81-
public closeIfNoActiveChannel() {
81+
public closeIfNoActiveSubscription() {
8282
this._closeSocketIfRequired();
8383
}
8484

packages/api-graphql/src/internals/events/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function connect(
103103
openChannels.delete(channelId);
104104
setTimeout(() => {
105105
if (openChannels.size === 0) {
106-
eventProvider.closeIfNoActiveChannel();
106+
eventProvider.closeIfNoActiveSubscription();
107107
}
108108
}, 1000);
109109
};

0 commit comments

Comments
 (0)