I have spent days trying to get this plugin (and the official web socket plugin) working, but they do nothing.
I tried the echo test project, does nothing but create a blank page.
I.e. something is seriously not working.
Also, neither work at all with node.js.
I am running node.js with socket.io on port 8080, using this very simple app:
var io = require("socket.io").listen(8080);
io.sockets.on('connection', function (socket) {
console.log("connected");
socket.emit('balls', { ball:42 });
socket.on('daub', function (data) {
console.log(data);
});
});
If I just write a dumb HTML page, it works perfectly:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<script src="socket-io/socket.io.js"></script>
<script>
var socket = io.connect('http://localhost:8080');
socket.on('balls', function (data) {
console.log(data);
socket.emit('daub', { my: 'data' });
});
</script>
</body>
</html>
I get 42 logged in the console
I have tried various plugins, (there are lot of versions floating round), none of them work at all, no error, nothing in console, no error events, no events what so ever.
E.g. this 3 line socket.io plugin app doesn't do anything:
<img src="https://www.dropbox.com/s/zh8dmd6ylxstkm0/sio.PNG" border="0" />
Nor does this one using the official plugin:
<img src="https://www.dropbox.com/s/mkommxixt23e1l2/WSProj.PNG" border="0" />
I am trying on the latest chrome and FF. Neither work. using the developerconsole/firebug, they show no socket connections being made. Ill try using wireshark, but the impression I get is that the "connect to" method is simply not making any connection attempt.
I have also tried exporting the projects as html5 sites, and running them from there. no joy.