Properly detect index completion when using WebSockets (fixes #66)