-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Currenty there is no connection to the server. reconnecting in 10 #28
Comments
Hey @nishanth6, Did you run the server as well ? |
@johnnymast |
Maybe you should switch off the database (for now) and try again to eliminate possible errors. |
Alright i have spotted the error.
This will run index.php from xampp, this creates html and will connect to the server on port 8080. So server.php will bind to port 8080. |
No Good it didn't solved the problem |
Is your version on github ? |
@nishanth6 is your index.php located in the root of your webserver? (and not something like /chat/index.php)? Im asking because: <script type="text/javascript" src="/js/dom.js"></script>
<script type="text/javascript" src="/js/websockets.js"></script>
<script type="text/javascript" src="/js/interface.js"></script> If your document root is /chat (or something) then these files and the stylesheets are not found. You might want to change the script urls or your document root. |
This issue will be resolved in version 1.4. For now remove the prefix / from the local script and css links in the html and you will be good to go. Happy coding ! 👍 |
As I'm using xampp server
config.php
`<?php
date_default_timezone_set('EUROPE/AMSTERDAM');
define ('DATABASE_HOST', 'localhost');
define ('DATABASE_USERNAME', 'root');
define ('DATABASE_PASSWORD', '');
define ('DATABASE_DB', 'socket_chat');
define ('ENABLE_DATABASE', true);
/**
*/
define('CHAT_SERVER_HOST', '127.0.0.1');
define('CHAT_SERVER_PORT', '80');
`
I tried to run aa
http://localhost/chat/chat/index.php
Got the Error as
The text was updated successfully, but these errors were encountered: