additional js file for frontend js code
This commit is contained in:
parent
34a70b4d41
commit
961ab22a78
13
public/js/front_client.js
Normal file
13
public/js/front_client.js
Normal 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);
|
Loading…
Reference in New Issue
Block a user