We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa5485c commit d3a23adCopy full SHA for d3a23ad
1 file changed
lib/realtime.js
@@ -268,6 +268,7 @@ var isDisconnectBusy = false;
268
var disconnectSocketQueue = [];
269
270
function finishConnection(socket, note, user) {
271
+ if (!socket || !note || !user) return;
272
note.users[socket.id] = user;
273
note.socks.push(socket);
274
note.server.addClient(socket);
0 commit comments