Lissy93 / twitter-sentiment-visualisation

🌍 Sentiment analysis over real-time social media data, rendering live charts to visualise trends
211 stars 68 forks source link

Streaming is slower than it should be, when accessing the site via mapped domain #19

Closed Lissy93 closed 6 years ago

Lissy93 commented 6 years ago

After the latest release, the Twitter streaming has become temperamental and significantly slower- but only when accessing a deployed version via a domain (e.g. http://sentiment-sweep.com ) as opposed to an IP + port (e.g. http://109.73.175.183:3003/ )

See this Q on SO, for more details.

But why? #bindBlown 🤯

Lissy93 commented 6 years ago

Fixed in commit: b2c84abf8ca4404b8500a83b8604c7711ece8fd0

Cause

This issue was caused by socket.io V 2.0+ is not backward compatible.

Solution

The ideal fix would have been to verify all handshakes and/or make the app fully SL compatible, but as a temporary solution, downgraded to the last stable version of socket.io (V 1.7.0) and everything is dreamy again.