metamaps--metamaps/realtime/index.js
2018-03-04 19:30:17 -05:00

16 lines
445 B
JavaScript

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'}]
const { createStore } = require('redux')
const reducer = require('./reducer')
module.exports = (io) => {
let store = createStore(reducer)
global(io, store)
signalling(io, stunservers, store)
junto(io, store)
map(io, store)
}