16 lines
445 B
JavaScript
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)
|
|
}
|