dev: fix hot reload

This commit is contained in:
jean-emmanuel 2023-09-08 18:14:34 +02:00
parent 3e74271e12
commit 7d751c6982
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ if (watch) {
WS = require('../node_modules/ws')
function send(msg, data){
var ipc = new WS('ws://127.0.0.1:8080/dev')
var ipc = new WS('ws://127.0.0.1:8080/dev/')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{
ipc.send(JSON.stringify([msg, data]))

View file

@ -33,7 +33,7 @@ if (process.argv.includes('--reload')) {
var WS = require('../node_modules/ws')
var ipc = new WS('ws://127.0.0.1:8080/dev')
var ipc = new WS('ws://127.0.0.1:8080/dev/')
ipc.on('error', ()=>{})
ipc.on('open', ()=>{