I wanted to learn how to do a web-based real time multiplayer game and recently, I found this one and tried it. Took me a lot of time to understand it since I have no background on js, websockets and nodes. Anyways I've done most parts of that blog but I kept getting this error.
The following error shows on the javascript console:
WebSocket connection to 'ws://localhost/socket.io/?EIO=2&transport=websocket' failed: Error during WebSocket handshake: Unexpected response code: 200
I have already started the game server with the line: C:\xampp\htdocs\node game.js
and it only shows something like this _
, an underscore blinking. So blankly its nothing, but I've read questions similar with problems and they said something like it is already working but it not just showing anything which it not really a bad thing.
I am really new to this kind of stuff so please, if anyone out there knows how to solve this problem please respond. It will be so much appreciated.