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

19 lines
448 B
JavaScript
Raw Normal View History

2016-11-07 20:25:08 +00:00
const io = require('socket.io')()
const signalling = require('./signal')
const junto = require('./junto')
const map = require('./map')
const global = require('./global')
const 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)