metamaps--metamaps/realtime/realtime-server.js

20 lines
422 B
JavaScript
Raw Normal View History

2015-09-19 16:02:05 +00:00
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"}]
2014-02-10 07:03:06 +00:00
const { createStore } = require('redux')
const reducer = require('./reducer')
let store = createStore(reducer)
2014-02-10 07:03:06 +00:00
global(io, store)
signalling(io, stunservers, store)
junto(io, store)
map(io, store)
io.listen(5001)