2017-03-13 12:43:44 +00:00
|
|
|
'use strict';
|
2017-03-14 15:02:54 +00:00
|
|
|
|
2017-03-13 12:43:44 +00:00
|
|
|
let iosocket = io.connect();
|
|
|
|
|
|
|
|
// setup all my handlers
|
|
|
|
iosocket.on('clientrefresh', () => {
|
|
|
|
location.reload();
|
|
|
|
});
|
|
|
|
|
2017-03-13 12:53:22 +00:00
|
|
|
iosocket.on('stateChange', () => {
|
|
|
|
location.reload();
|
|
|
|
});
|
|
|
|
|
2017-03-13 12:43:44 +00:00
|
|
|
|
|
|
|
// get my state
|
2017-03-13 12:53:22 +00:00
|
|
|
let context = 'main';
|
2017-03-13 12:43:44 +00:00
|
|
|
iosocket.emit('loadState',context);
|
2017-03-14 15:02:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
function createTeam(member1, member2){
|
|
|
|
|
|
|
|
}
|