2015-09-19 16:02:05 +00:00
|
|
|
var
|
2016-10-19 00:29:21 +00:00
|
|
|
io = require('socket.io')(),
|
|
|
|
signalling = require('./signal'),
|
|
|
|
junto = require('./junto'),
|
|
|
|
map = require('./map'),
|
|
|
|
global = require('./global'),
|
2016-10-18 16:34:19 +00:00
|
|
|
stunservers = [{"url": "stun:stun.l.google.com:19302"}]
|
2014-02-10 07:03:06 +00:00
|
|
|
|
2016-10-19 00:29:21 +00:00
|
|
|
var state = {
|
|
|
|
connectedPeople: {},
|
|
|
|
liveMaps: {}
|
2014-02-10 07:03:06 +00:00
|
|
|
}
|
2016-10-19 00:29:21 +00:00
|
|
|
signalling(io, stunservers, state)
|
|
|
|
junto(io, state)
|
|
|
|
map(io, state)
|
|
|
|
global(io, state)
|
|
|
|
io.listen(5001)
|
2014-02-10 07:03:06 +00:00
|
|
|
|