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

You are not logged in.

Announcement

#1 2020-06-24 18:53:57

testlast
New member
Registered: 2020-06-24
Posts: 9

Socket Failure to connect

HI guys please somebody help

WebSocket connection to 'ws://{my hostname here}/socketcluster/' failed: Error during WebSaocket handshake: Unexpected response code: 404

Offline

#2 2020-06-24 19:05:17

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,063
Website

Re: Socket Failure to connect

https://doc.livehelperchat.com/docs/node-js/
You have to setup node ja proxy as stated for nginx for apache something similar should be.

Offline

#3 2020-06-25 09:02:29

testlast
New member
Registered: 2020-06-24
Posts: 9

Re: Socket Failure to connect

content of settings.ini.php in the nodejshelper extension

I want to ask what should be the value for connect_db (i mean where i have put asterisks)

<?php

return array(
    'connect_db' => '**********',
    'connect_db_id' => 0,
    'automated_hosting' => false,
    'public_settings' => array(
        'hostname' => (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : null),
        'path' => '/socketcluster/',
        'port' => null, //some custom port
        'secure' => false, // true || false
    )
);

?>

Offline

#4 2020-06-25 09:19:16

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,063
Website

Re: Socket Failure to connect

I do not think you understood fully what's required to have it working. It include NodeJS server setup, adjusting apache/nginx configuration and configuring extension. Having extension alone is not enough...

Offline

#5 2020-06-25 11:35:00

testlast
New member
Registered: 2020-06-24
Posts: 9

Re: Socket Failure to connect

okay thanks

Offline

#6 2020-06-26 08:45:54

testlast
New member
Registered: 2020-06-24
Posts: 9

Re: Socket Failure to connect

but what should be the value for connect_db (i mean where i have put asterisks)

Offline

Board footer