additional js file for frontend js code

This commit is contained in:
Lukas Bachschwell 2017-03-13 13:43:44 +01:00
parent 34a70b4d41
commit 961ab22a78
1 changed files with 13 additions and 0 deletions

13
public/js/front_client.js Normal file
View File

@ -0,0 +1,13 @@
'use strict';
//import io from('/socket.io/socket.io.js');
let io = require('socket.io-client')
let iosocket = io.connect();
// setup all my handlers
iosocket.on('clientrefresh', () => {
location.reload();
});
// get my state
iosocket.emit('loadState',context);