unspectacular commit =P

This commit is contained in:
2017-03-14 16:02:54 +01:00
parent f727401af0
commit 1a680725a3
6 changed files with 36 additions and 49 deletions

18
public/js/back_client.js Normal file
View File

@ -0,0 +1,18 @@
// @flow
'use strict';
// This is the backend client js
let iosocket: object = io.connect();
// setup all my handlers
iosocket.on('clientrefresh', () => {
location.reload();
});
iosocket.on('stateChange', () => {
location.reload();
});
// get my state
let context = 'admin';
iosocket.emit('loadState',context);

View File

@ -1,4 +1,5 @@
'use strict';
let iosocket = io.connect();
// setup all my handlers
@ -14,3 +15,8 @@ iosocket.on('stateChange', () => {
// get my state
let context = 'main';
iosocket.emit('loadState',context);
function createTeam(member1, member2){
}