realchess | Chess using socket.io and node.js | Runtime Evironment library
kandi X-RAY | realchess Summary
kandi X-RAY | realchess Summary
Chess using socket.io and node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of realchess
realchess Key Features
realchess Examples and Code Snippets
Community Discussions
Trending Discussions on realchess
QUESTION
I'm developing a multiplayer chess game using node js with socket.io. The game displays fine in the index.html file and works fine on the server when I run it on localhost:8080. However, the chess moves aren't being submitted to the other player, even though I did everything right. What's missing? I have socket.io installed correctly
I've tried re-watching the tutorial on youtube over and over again to spot my mistake, but I can't. I did everything accordingly. I must be missing something. here's the link https://www.youtube.com/watch?v=Isfqigjo7fQ&t=1621s
EDIT
here is the link to the tutorial on building the multiplayer chess game http://dwcares.com/2015/10/21/realchess/
...ANSWER
Answered 2019-Apr-12 at 16:01Could it be that handleMove
is never called? I can't see it in the code you provided.
Edit: Also you are connecting using var socket = io.connect('http://localhost');
The http port is 80
by default. Try connecting to http://localhost:8080
To do that, change your script in the HTML file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install realchess
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page