We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d76924d commit f5d92e1Copy full SHA for f5d92e1
1 file changed
server.js
@@ -10,6 +10,11 @@ const ACTIONS = require('./src/actions/Actions');
10
const server = http.createServer(app);
11
const io = new Server(server);
12
13
+app.use(express.static('build'));
14
+app.use((req, res, next) => {
15
+ res.sendFile(path.join(__dirname, 'build', 'index.html'));
16
+});
17
+
18
const userSocketMap = {};
19
function getAllConnectedClients(roomId) {
20
// Map
0 commit comments