lint
This commit is contained in:
parent
3ab927f38a
commit
3c38a81327
@ -46,7 +46,7 @@ const callbackRequest = (url, timeout, data) => {
|
||||
'Content-Length': data.length
|
||||
}
|
||||
}
|
||||
var req = http.request(options)
|
||||
const req = http.request(options)
|
||||
req.on('timeout', () => {
|
||||
console.warn('Callback request timed out.')
|
||||
req.abort()
|
||||
|
||||
@ -29,6 +29,6 @@ server.on('upgrade', (request, socket, head) => {
|
||||
wss.handleUpgrade(request, socket, head, handleAuth)
|
||||
})
|
||||
|
||||
server.listen({host, port})
|
||||
server.listen({ host, port })
|
||||
|
||||
console.log(`running at '${host}' on port ${port}`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user