流程:
监听端口
接受连接
进行websocket握手
握手成功后的连接进行数据处理
返回响应数据
可以参考以下系列文章:
https://blog.lyz810.com/article/category/websocket/