gitpush
This commit is contained in:
parent
08e94394f7
commit
0f4f8bc709
@ -20,7 +20,7 @@ const server = http.createServer(function (request, response) {
|
|||||||
response.setHeader('Content-Type', 'application/json')
|
response.setHeader('Content-Type', 'application/json')
|
||||||
response.end(JSON.stringify(status))
|
response.end(JSON.stringify(status))
|
||||||
})
|
})
|
||||||
server.listen(port, hostname, () => console.log(`rpi status http server is running at http://${hostname}:${port}`))
|
server.listen(port, host, () => console.log(`rpi status http server is running at http://${host}:${port}`))
|
||||||
|
|
||||||
const socketio = require('socket.io')
|
const socketio = require('socket.io')
|
||||||
const io = socketio(server, { cors: { origin: "*" } })
|
const io = socketio(server, { cors: { origin: "*" } })
|
||||||
|
Loading…
Reference in New Issue
Block a user