mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-29 09:17:51 +01:00
refactor of networking when first reaching game page
This commit is contained in:
@@ -65,15 +65,11 @@ const ServerBootstrapper = {
|
||||
let io;
|
||||
if (process.env.NODE_ENV.trim() === 'development') {
|
||||
io = require('socket.io')(main, {
|
||||
cors: { origin: 'http://localhost:' + port },
|
||||
pingTimeout: 5000,
|
||||
pingInterval: 5000
|
||||
cors: { origin: 'http://localhost:' + port }
|
||||
});
|
||||
} else {
|
||||
io = require('socket.io')(main, {
|
||||
cors: { origin: 'https://playwerewolf.uk.r.appspot.com' },
|
||||
pingTimeout: 5000,
|
||||
pingInterval: 5000
|
||||
cors: { origin: 'https://playwerewolf.uk.r.appspot.com' }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user