I have this web application written using express and socket.io using node.js, the application runs on the local host, but when I click on my ec2 server, it connects for about 20 seconds, then disconnects and then connects again and so on ...
gives me an error in node console like
warn - websocket connection invalid info - transport end
SERVER
app = express() server = http.createServer(app) io = require('socket.io').listen(server)
CUSTOMER
socket = io.connect()
I know that the problem is not in my code, because I fully tested the web application on the local host, so the only problem is where does this code work, which is my ec2 instance?
source share