fb427a11f0
* push state to client * junto status is live on map cards XD * little fixes * eslint stuff * remove object rest spread * i think this makes realtime work without needing babel-node
19 lines
426 B
JavaScript
19 lines
426 B
JavaScript
var
|
|
io = require('socket.io')(),
|
|
signalling = require('./signal'),
|
|
junto = require('./junto'),
|
|
map = require('./map'),
|
|
global = require('./global'),
|
|
stunservers = [{"url": "stun:stun.l.google.com:19302"}]
|
|
|
|
const { createStore } = require('redux')
|
|
const { reducer } = require('./reducer')
|
|
|
|
let store = createStore(reducer)
|
|
|
|
global(io, store)
|
|
signalling(io, stunservers, store)
|
|
junto(io, store)
|
|
map(io, store)
|
|
|
|
io.listen(5001)
|