use a websocket which automatically reconnects if the connection is lost
remove the 'magic line' because it causes problems with the realtime