connecting the whole app: websocket, foam backend