unspectacular commit =P
This commit is contained in:
18
public/js/back_client.js
Normal file
18
public/js/back_client.js
Normal 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);
|
@ -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){
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user