Is there a way to connect to Twitter via the HTML5 WebSocket API (JavaScript)?
Currently http://streamie.org/ seems to be doing something similar, but they are leading it through http://local.streamie.org:8888/ so it looks like they are launching a websocket.
The JavaScript part is pretty clear:
websocket = new WebSocket('ws://echo.websocket.org/');
websocket.onopen = function(event) {
websocket.send('hello from client');
console.log('CONNECTED');
};
websocket.onclose = function(event) {
console.log('DISCONNECTED');
};
websocket.onmessage = function(event) {
console.log(event.data);
};
websocket.onerror = function(event) {
};
But what is the website address for Twitter?
source
share