Live Helper Chat support forum.. Old google groups forum can be found here

You are not logged in.

Announcement

#1 2019-07-30 15:47:19

Hamburgo
Member
Registered: 2017-09-21
Posts: 23

LHC with node.js by socket.io on other ports as 80 / 443 ?

I do not have any skill about node.js, but it will not be a problem to learn it,
but before I will spend a lot of time on it, I have a question.

Will it be possible to run LHC over node.js by socket.io on OTHER ports like
the classic ports 80 and 443, so there will be still free for a apache-Server ?

The main reason to try it is, to win speed for screen-sharing !

Last edited by Hamburgo (2019-07-30 15:50:27)

Offline

#2 2019-07-30 16:12:50

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 3,459
Website

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

Hi Hamburgo, thank you for your question.
Node JS is something out of my free limited support.

I tried to forward your question to the chat owner but i cannot grant a reply.
If you need to be followed in a professional support you can find helpfull links on my forum signature.

Thank you for understanding!
Have a good time  wink


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2019-07-31 05:47:22

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 2,686
Website

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

Where I have integrated it. It's always nginx and nodejs running on custom portand nginx just proxies request to nodejs servers smile

Offline

#4 2019-07-31 08:13:43

Hamburgo
Member
Registered: 2017-09-21
Posts: 23

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

Is it possible to say the LHC-Widget to use a special port like 8080 or 8443
for the communication with my web-server ?

The idea behind is to setup nginx on this port and move the whole LHC-Application
on this Web-Server and my ERP-Application will still run on the Apache-Server over
Port 80/443.

Offline

#5 2019-07-31 08:37:45

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 2,686
Website

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

You can try, but i'm not sure it will work. As i personally have not tested it that way smile

Offline

#6 2019-07-31 09:25:33

Hamburgo
Member
Registered: 2017-09-21
Posts: 23

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

This is my code to call the LHC-Widget:

 <script>
    var LHCChatOptions = {};
    LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500,domain:'kmu-office.spdns.de'};
      (function() {
        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
        var referrer = (document.referrer) ? encodeURIComponent(document.referrer.substr(document.referrer.indexOf('://')+1)) : '';
        var location  = (document.location) ? encodeURIComponent(window.location.href.substring(window.location.protocol.length)) : '';
        po.src = '//livechat.spdns.de/LiveHelperChat/index.php/ger/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/1?r='+referrer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
   </script>

Where I have to set the port like 8080 with the correct syntax ?

Offline

#7 2019-07-31 12:54:16

Hamburgo
Member
Registered: 2017-09-21
Posts: 23

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

With the current version 3.24 LHC it will not work, I believe.

I tried a little test to run LHC on port 444 on my standard web-server:

URL-Input in the browser (Chrome and FireFox):
https://livechat.spdns.de:444/LiveHelpe … user/login

URL-Return from LHC out of specified port: 444
https://livechat.spdns.de/LiveHelperCha … user/login

I do not have any Rewrite cond/rules for this domain in the .htaccess or
ssl.conf.

Can it be, that LHC is removing the specified port from the URL ?

Offline

#8 2019-08-02 12:54:50

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 2,686
Website

Re: LHC with node.js by socket.io on other ports as 80 / 443 ?

Can be really not sure that lhc support custom ports.

Offline

Board footer