add websockets, cassette updates for admin

This commit is contained in:
Josh Harvey 2017-05-15 18:29:40 +03:00
parent a123170622
commit 5ed29ee67d
5 changed files with 631 additions and 12 deletions

9
lib/socket-client.js Normal file
View file

@ -0,0 +1,9 @@
const io = require('socket.io-client')
const socket = io('http://localhost:3060')
module.exports = {emit}
function emit (msg) {
socket.emit('message', msg)
}