From 76a7a1943eca1d306455e18c875977741598810d Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 18 Jul 2020 17:11:24 -0500 Subject: [PATCH] feat: store socket ID with message --- src/server/sockets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/sockets.js b/src/server/sockets.js index 4eda28a..9d03c7a 100644 --- a/src/server/sockets.js +++ b/src/server/sockets.js @@ -103,6 +103,7 @@ export function createSocketServer(httpServer) { .set(key, JSON.stringify({ message, owner, + socket: socket.id, timestamp, })) .expire(key, 600)