I have a Flask application that uses SocketIO to fetch data from Postgres live.
My socketio in JS is like this:
var socket = io.connect(\'http://localh