Yes, I check it way before and that's why the above requirement has been created by the Project Architect.
Socket.IO can re-emit the failed event of the message send if the Internet is back within some seconds or maybe some minutes as well. But the re-emit will stop as once the timeout became quite long.
Moreover, there is no way to show up the user that what exactly is happening with Socket at the moment. So the best approach is to cancel the sending message and clear out the socket's buffer (*Make socket buffer empty*).