2015-09-19 16:02:05 +00:00
|
|
|
var
|
2016-10-19 00:29:21 +00:00
|
|
|
io = require('socket.io')(),
|
|
|
|
signalling = require('./signal'),
|
|
|
|
junto = require('./junto'),
|
|
|
|
map = require('./map'),
|
|
|
|
global = require('./global'),
|
2016-10-18 16:34:19 +00:00
|
|
|
stunservers = [{"url": "stun:stun.l.google.com:19302"}]
|
2014-02-10 07:03:06 +00:00
|
|
|
|
2016-10-21 13:29:04 +00:00
|
|
|
const { createStore } = require('redux')
|
2016-10-21 22:04:18 +00:00
|
|
|
const reducer = require('./reducer')
|
2016-10-21 13:29:04 +00:00
|
|
|
|
|
|
|
let store = createStore(reducer)
|
2014-02-10 07:03:06 +00:00
|
|
|
|
2016-10-21 13:29:04 +00:00
|
|
|
global(io, store)
|
|
|
|
signalling(io, stunservers, store)
|
|
|
|
junto(io, store)
|
|
|
|
map(io, store)
|
|
|
|
|
|
|
|
io.listen(5001)
|