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

You are not logged in.

Announcement

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

testlast
Member
Registered: 2020-06-24
Posts: 17

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,661
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
Member
Registered: 2020-06-24
Posts: 17

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,661
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
Member
Registered: 2020-06-24
Posts: 17

Re: Socket Failure to connect

okay thanks

Offline

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

testlast
Member
Registered: 2020-06-24
Posts: 17

Re: Socket Failure to connect

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

Offline

#7 2020-08-14 15:50:57

testlast
Member
Registered: 2020-06-24
Posts: 17

Re: Socket Failure to connect

I still have problem here

WebSocket connection to 'ws://<my url>:8000/socketcluster/' failed: WebSocket is closed before the connection is established.

Offline

#8 2020-08-18 11:08:43

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

Re: Socket Failure to connect

connect_db is redis database id it has to match nodejs extension defined database.

Offline

Board footer