add websockets, cassette updates for admin
This commit is contained in:
parent
a123170622
commit
5ed29ee67d
5 changed files with 631 additions and 12 deletions
9
lib/socket-client.js
Normal file
9
lib/socket-client.js
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue