Skip to content
Snippets Groups Projects
Unverified Commit e490f43b authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

regression: subscriptions not being queued during reconnection (#33688)

parent c41ab9eb
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,10 @@ const shouldBypass = ({ msg, method, params }: Meteor.IDDPMessage): boolean => {
return false;
};
const withDDPOverREST = (_send: (this: Meteor.IMeteorConnection, message: Meteor.IDDPMessage) => void) => {
return function _sendOverREST(this: Meteor.IMeteorConnection, message: Meteor.IDDPMessage): void {
const withDDPOverREST = (_send: (this: Meteor.IMeteorConnection, message: Meteor.IDDPMessage, ...args: unknown[]) => void) => {
return function _sendOverREST(this: Meteor.IMeteorConnection, message: Meteor.IDDPMessage, ...args: unknown[]): void {
if (shouldBypass(message)) {
return _send.call(this, message);
return _send.call(this, message, ...args);
}
const endpoint = Tracker.nonreactive(() => (!Meteor.userId() ? 'method.callAnon' : 'method.call'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment