Skip to content

Commit 1935672

Browse files
committed
Fix origins restriction syntax after socket.io 2.4.0 upgrade
1 parent b416014 commit 1935672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GameBackendSocketIO/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function getSocketsInGame(gameId) {
5858
}
5959

6060

61-
io.set('origins', '*:*');
61+
io.origins(['http://extriviaganza.herokuapp.com']);
6262

6363
io.on('connection', socket => {
6464
console.log(`A user connected, socketId = ${socket.id}`);

0 commit comments

Comments
 (0)