Log out osx websocket start and stop