Has anyone been able to use sockets in HTML5?
When I try to connect, Chrome gives me the error:
“WebSocket is closed before the connection is established.”
This is my code:
function init(self)
s = socket.connect(“localhost”, 10000)
s:send(“test”)
end
I’ve tested it against my own node server and echo.websocket.org on port 8080.
Thanks!