We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daf34e3 commit 3d94af7Copy full SHA for 3d94af7
server.mjs
@@ -85,10 +85,9 @@ function handleJoin(socket, docId) {
85
86
if (slideshows.get(docId)) {
87
socket.emit('newImage', {'imageId': slideshows.get(docId), 'docId': docId});
88
-
89
}
90
91
- socket.emit('joinSuccess', {message: 'Channel joined.'});
+ socket.emit('joinSuccess', {docId: docId});
92
console.log(`Client ${socket.id} joined channel ${docId}`);
93
94
0 commit comments