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.
agent
1 parent e3e6781 commit 16d620cCopy full SHA for 16d620c
src/common/lib/client/realtimechannel.ts
@@ -189,7 +189,14 @@ class RealtimeChannel extends Channel {
189
return false;
190
}
191
if (options?.params) {
192
- if (!this.params || !Utils.shallowEquals(this.params, options.params)) {
+ // Don't check against the `agent` param - it isn't returned in the ATTACHED message
193
+ const requestedParams = Object.assign({}, options.params);
194
+ delete requestedParams.agent;
195
+ if (Object.keys(requestedParams).length !== 0 && !this.params) {
196
+ return true;
197
+ }
198
+
199
+ if (this.params && !Utils.shallowEquals(this.params, requestedParams)) {
200
return true;
201
202
0 commit comments