I bought a script not so long back and I am trying to install it on my Linux hosting cPanel with GoDaddy.
I have followed the installation instructions (below) provided by the script author but I am having no luck.
1. Modify server/server.php Line: 282
$master = new ChatBot(“(author's domain)”, 10000);
I changed the domain name and port to my own domain name and port 8080 (also tried 10000).
2. Run PHP socket on your server
Linux Server (terminal): php -q /path/server/server.php
I do this and in PuTTY the server says started.
3. Modify assets/js/engine.js ws://(author's domain):10000/envato/chatloc/server/server.php”;
I change the domain name again to my own and then change the path to the server.
So, why on earth is my Websocket Status showing as 0 in the console? It keeps saying... (in console)
DOMException {message: "Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.", name: "InvalidStateError", code: 11, stack: "Error: Failed to execute 'send' on 'WebSocket': St…(my domain).co.uk/lib/jquery-1.8.2.min.js:1:33875)", INDEX_SIZE_ERR: 1…}
ANY HELP WOULD BE HIGHLY APPRECIATED.