Add message pool to avoid XHR race condition