Skip to content

Commit 31e71ec

Browse files
committed
Add imageId param to startSlideshow
1 parent 8390bcb commit 31e71ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ io.on("connection", (socket) => {
105105
});
106106

107107
socket.on("startSlideshow", (data) => {
108-
const { docId } = data;
108+
const { docId, imageId } = data;
109109
console.log(`Slideshow started with ID: ${docId}`);
110110
channel.publishers.set(socket.id, docId);
111111
channel.docIds.add(docId);
112-
slideshows.set(docId, "");
112+
slideshows.set(docId, imageId);
113113
socket.join(docId);
114114
console.log("Channels:", channels);
115115
});

0 commit comments

Comments
 (0)