uniScore/public/js/back_client.js

18 lines
310 B
JavaScript

'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);