Twitter + HTML5 webSocket API

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?

+5
source share
2 answers

Twitter does not provide a WebSocket interface. You will need to run the proxy server on your own server if you want to access the Twitter Streaming API through WebSockets.

+4
source

, WebSockets Twitter - http://kaazing.me. - - https://kaazing.com/download/ - , . API- WebSocket .

, , - Twitter, WS.

+5

All Articles