We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c52d4 commit 533ec46Copy full SHA for 533ec46
src/util/BaseWSClient.ts
@@ -971,8 +971,12 @@ export abstract class BaseWebsocketClient<
971
972
// Guard to assert auth for some of the public topics that require it
973
for (const topicRequest of topicsForWsKey) {
974
- if (PUBLIC_CHANNELS_WITH_AUTH.includes(topicRequest.topic)) {
975
- await this.assertIsAuthenticated(wsKey, true);
+ if (
+ PUBLIC_CHANNELS_WITH_AUTH.includes(topicRequest.topic) ||
976
+ PRIVATE_CHANNELS.includes(topicRequest.topic)
977
+ ) {
978
+ const skipPublicWsKeyCheck = true;
979
+ await this.assertIsAuthenticated(wsKey, skipPublicWsKeyCheck);
980
break;
981
}
982
0 commit comments