add a global web socket and use the heartbeat to finally implement the account->online feature