Test if WebSockets message will be sent to server if page is reloading