Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
allow origin
  • Loading branch information
jurajkalafut authored May 13, 2024
1 parent 6278fbe commit 2bedf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const args = require('./bundles/args');
const server = require('./bundles/server');
const io = require('socket.io')(server);
const io = require('socket.io')(server,{origins: ['*']});
const redis = require("redis");
const subscriber = redis.createClient(JSON.parse(args.sub));
const publisher = redis.createClient(JSON.parse(args.pub));
Expand Down

0 comments on commit 2bedf1b

Please sign in to comment.