Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alvagi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
alvagi
Commits
b0fe0c71
Commit
b0fe0c71
authored
Apr 06, 2023
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update with sock index.js
parent
b38ea9b9
Pipeline
#152
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
index.js
lib/index.js
+11
-4
No files found.
lib/index.js
View file @
b0fe0c71
...
@@ -43,10 +43,17 @@ class AgiServer extends EventEmitter {
...
@@ -43,10 +43,17 @@ class AgiServer extends EventEmitter {
});
});
this
.
server
.
on
(
'
close
'
,
()
=>
this
.
emit
(
'
close
'
));
this
.
server
.
on
(
'
close
'
,
()
=>
this
.
emit
(
'
close
'
));
if
(
this
.
options
.
host
){
this
.
server
.
listen
(
this
.
options
.
port
,
this
.
options
.
host
,
()
=>
{
this
.
server
.
listen
(
this
.
options
.
port
,
this
.
options
.
host
,
()
=>
{
console
.
log
(
'
agi server on
'
,
this
.
options
.
port
,
'
listen
'
);
console
.
log
(
'
agi server on
'
,
this
.
options
.
port
,
'
listen
'
);
});
});
}
}
else
{
this
.
server
.
listen
(
this
.
options
.
port
,
()
=>
{
console
.
log
(
'
agi server on
'
,
this
.
options
.
port
,
'
listen
'
);
});
}
}
/**
/**
* @return {Promise}
* @return {Promise}
...
...
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