Make sure the long-polling re-connection happened before calling onOpen