update listener name for hardhat

pull/1172/head
aniket-engg 4 years ago committed by Aniket
parent dd4b1aa4e5
commit 17a70e0889
  1. 1
      libs/remixd/src/bin/remixd.ts
  2. 8
      libs/remixd/src/websocket.ts

@ -28,6 +28,7 @@ const services = {
folder: (readOnly: boolean) => new servicesList.Sharedfolder(readOnly)
}
// Similar object is also defined in websocket.ts
const ports = {
git: 65521,
hardhat: 65522,

@ -16,9 +16,13 @@ export default class WebSocket {
response.end()
})
const loopback = '127.0.0.1'
const listeners = {
65520: 'remixd',
65521: 'git',
65522: 'hardhat'
}
this.server.listen(this.port, loopback, () => {
console.log(`${new Date()} remixd is listening on ${loopback}:${this.port}`)
console.log('\x1b[32m%s\x1b[0m', `[INFO] ${new Date()} ${listeners[this.port]} is listening on ${loopback}:${this.port}`)
})
this.wsServer = new WS.Server({
server: this.server,

Loading…
Cancel
Save