Fix onreconnect in cursor

This commit is contained in:
yflory 2019-09-09 18:56:49 +02:00
parent 29075b7898
commit 2bd8c2d363
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ define([
console.error(err);
});
};
chan.onReconnect = onReconnect;
ctx.channels[channel] = ctx.channels[channel] || {};
ctx.channels[channel].onReconnect = onReconnect;
network.on('reconnect', onReconnect);
};