Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
bs
node-bigstream
Commits
6a39c5f5
Commit
6a39c5f5
authored
May 21, 2023
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http resp
parent
7fd78867
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.js
http-listener/main.js
+3
-3
No files found.
http-listener/main.js
View file @
6a39c5f5
...
@@ -26,7 +26,7 @@ function HTTPListener(cfg)
...
@@ -26,7 +26,7 @@ function HTTPListener(cfg)
this
.
httpacl
=
HttpACL
.
create
({
'conn'
:
this
.
config
.
memstore
.
url
});
this
.
httpacl
=
HttpACL
.
create
({
'conn'
:
this
.
config
.
memstore
.
url
});
this
.
jobcaller
=
new
QueueCaller
({
'url'
:
this
.
config
.
amqp
.
url
,
'name'
:
'bs_jobs_cmd'
});
this
.
jobcaller
=
new
QueueCaller
({
'url'
:
this
.
config
.
amqp
.
url
,
'name'
:
'bs_jobs_cmd'
});
this
.
evs
=
new
EvenSub
({
'url'
:
this
.
config
.
amqp
.
url
,
'name'
:
'bs_trigger_cmd'
});
this
.
evs
=
new
EvenSub
({
'url'
:
this
.
config
.
amqp
.
url
,
'name'
:
'bs_trigger_cmd'
});
//this.evp = new EvenPub({'url':this.config.amqp.url,'name':JOBCHANEL
});
this
.
msgrecv
=
new
EvenSub
({
'url'
:
this
.
config
.
amqp
.
url
,
'name'
:
'bs_msg_bus'
});
}
}
HTTPListener
.
prototype
.
start
=
function
()
HTTPListener
.
prototype
.
start
=
function
()
...
@@ -61,13 +61,13 @@ HTTPListener.prototype._http_start = function()
...
@@ -61,13 +61,13 @@ HTTPListener.prototype._http_start = function()
var
context
=
require
(
'./lib/http-context'
);
var
context
=
require
(
'./lib/http-context'
);
app
.
use
(
context
.
middleware
({
app
.
use
(
context
.
middleware
({
'httpacl'
:
self
.
httpacl
,
'httpacl'
:
self
.
httpacl
,
'jobcaller'
:
self
.
jobcaller
'jobcaller'
:
self
.
jobcaller
,
'msgrecv'
:
self
.
msgrecv
}));
}));
app
.
use
(
require
(
'./ws'
));
app
.
use
(
require
(
'./ws'
));
app
.
listen
(
API_PORT
,
function
()
{
app
.
listen
(
API_PORT
,
function
()
{
console
.
log
(
'WWW:HTTP START
\
t
\
t[OK]'
);
console
.
log
(
'WWW:HTTP START
\
t
\
t[OK]'
);
});
});
...
...
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