23 lines
313 B
JavaScript
23 lines
313 B
JavaScript
'use strict';
|
|
|
|
let iosocket = io.connect();
|
|
|
|
// setup all my handlers
|
|
iosocket.on('clientrefresh', () => {
|
|
location.reload();
|
|
});
|
|
|
|
iosocket.on('stateChange', () => {
|
|
location.reload();
|
|
});
|
|
|
|
|
|
// get my state
|
|
let context = 'main';
|
|
iosocket.emit('loadState',context);
|
|
|
|
|
|
function createTeam(member1, member2){
|
|
|
|
}
|