Reputation: 2179
for some reason my server that uses socket.io is not working properly. The program makes a HTML5 canvas and then opens sockets so that multiple people can view one canvas. I can get the canvas to draw stuff accordingly to input, however I can't get the socket.io to run correctly so that browsers synchronize the drawings. I am running this on ec2. Any help is appreciated:)
I wrote the server in node.js
server.js http://pastebin.com/hH51DTb3
index.html http://pastebin.com/b7PrScze
scripts.js http://pastebin.com/zLgDf7zs
Oh, and btw you can view what it looks like here: http://107.20.163.241/
EDIT: Yes KaoD of course I have tried things. I've tried uninstalling and reinstalling socket.io, I've tried moving the project folder to different directory locations, I've tried moving the socket.io to an external folder, and a few others that I can't seem to remember atm
Minimum test case is if both people go to the same site, they will both in real time see each other draw
CHANGING THE SECURITY GROUP WORKED, THANK YOU.
Upvotes: 1
Views: 381
Reputation: 2179
The problem was that my security group was not configured to allow port 4000. Thanks to fourk for suggesting the fix.
Upvotes: 1