Socket.IO not working properly
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.
问题在于我的安全组没有配置为允许4000端口。感谢fourk提出修复建议。
链接地址: http://www.djcxy.com/p/44730.html上一篇: 在多人Socket.io游戏中管理套接字
下一篇: Socket.IO无法正常工作