uniScore/public/js/front_client.js

23 lines
313 B
JavaScript
Raw Normal View History

'use strict';
2017-03-14 15:02:54 +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();
});
// get my state
2017-03-13 12:53:22 +00:00
let context = 'main';
iosocket.emit('loadState',context);
2017-03-14 15:02:54 +00:00
function createTeam(member1, member2){
}