WIP: status => failure...
Finished changing Flask-Sockets to Flask-SocketIO.
Modified a bug.