Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
17a70e08
Commit
17a70e08
authored
May 24, 2021
by
aniket-engg
Committed by
Aniket
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update listener name for hardhat
parent
dd4b1aa4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
remixd.ts
libs/remixd/src/bin/remixd.ts
+1
-0
websocket.ts
libs/remixd/src/websocket.ts
+6
-2
No files found.
libs/remixd/src/bin/remixd.ts
View file @
17a70e08
...
...
@@ -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
,
...
...
libs/remixd/src/websocket.ts
View file @
17a70e08
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment