参考: http://www.ttlsa.com/python/monitor-log-realtime-python-websocket/
http://www.cnblogs.com/xiaoyou2018/archive/2018/07/18/9328950.html
https://blog.csdn.net/devilcry13/article/details/81702147
https://blog.csdn.net/s740556472/article/details/78991704
https://www.cnblogs.com/shihaiming/p/6201678.html