Commit 2b7fc132 authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

list once

parent 209b4b63
File mode changed from 100755 to 100644
...@@ -83,7 +83,7 @@ var process_req = function(req, res ,method) { ...@@ -83,7 +83,7 @@ var process_req = function(req, res ,method) {
if(jmatch) if(jmatch)
{ {
if(cb_response){ if(cb_response){
httpcb.on(session_id,function(msg){ httpcb.once(session_id,function(msg){
resp_msg.response=msg.data.data; resp_msg.response=msg.data.data;
if(['data','data_only','json'].includes(String(cb_response).toLocaleLowerCase())){ if(['data','data_only','json'].includes(String(cb_response).toLocaleLowerCase())){
resp_msg=msg.data.data resp_msg=msg.data.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment