Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2014-05-13 22:43:23

Dan Zicom
Member
Registered: 2014-04-08
Posts: 40

Getting NodejsHelper Working Properly?

Hi,
I have been able to setup the our DNS with subdomain (node.oursite.net) and installed node.js. It seems I have configured node.js properly on our server. I tested from command line in putty and got the response.
***:/home/www/oursite.net/extension/nodejshelper/server# node server.js
   info  - socket.io started
LHC Server listening on localhost:3000
If I try to go to http://node.oursite.net/extension/nodejshelper/server/server.js  I am getting a 404 error.
In the file extension/nodejshelper/server/settings.js file I have these settings...
settings.socketiopath = '/usr/local/lib/node_modules/socket.io';
settings.web.host = "localhost";
settings.web.port = 3000;
and in my extension/nodejshelper/design/nodejshelpertheme/tpl/pagelayouts/parts/page_head_js_extension.tpl.php  I have this.
<?php
    $nodeJsHelperSettings = array (
        'prefix' => 'http://',
        'host' => 'localhost',
        'port' => '31129',
    );
I set the settings.ini.php file with this...
'extensions' =>
      array (
        0 => 'nodejshelper',
      ),
After clearing cache, the chats become unstable. It's like there is something wrong with the setup that will not allow for chats to work properly.
What am I doing wrong?
Thanks


https://groups.google.com/forum/#!topic … U4rUUL_vf8

Offline

#2 2014-05-14 06:58:10

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Getting NodejsHelper Working Properly?

$nodeJsHelperSettings = array (        'prefix' => 'http://',
        'host' => 'localhost',
        'port' => '31129',
    );


should look like in your case
$nodeJsHelperSettings = array (
        'prefix' => 'http://',
        'host' => 'node.oursite.net',
        'port' => '80',
    );





Offline

#3 2014-05-14 12:36:18

Dan Zicom
Member
Registered: 2014-04-08
Posts: 40

Re: Getting NodejsHelper Working Properly?

Three questions...
1) Isn't port 80 reserved for website's port and will it conflict with nginx?
2) Will this setup work when the site displaying the chat is in https mode?
3) Does it matter that I am getting a 404 when I run http://node.oursite.net/extension/nodejshelper/server/server.js  in the browser window?

Offline

#4 2014-05-14 12:39:26

Dan Zicom
Member
Registered: 2014-04-08
Posts: 40

Re: Getting NodejsHelper Working Properly?

Oh and will this work on iphone and ipads, etc?

Offline

#5 2014-05-14 12:54:32

Dan Zicom
Member
Registered: 2014-04-08
Posts: 40

Re: Getting NodejsHelper Working Properly?

I tried your recommended settings and still does not work sad

Offline

Board footer