websocket 理解
参考文档:
单机: https://blog.csdn.net/a553181867/article/details/115755554
分布式环境:
1. https://www.cnblogs.com/bartggg/p/14412869.html
2. https://blog.csdn.net/chen417980762/article/details/108888525
理论知识:
https://www.liaoxuefeng.com/wiki/1252599548343744/1282384966189089
遇到的问题:
1. redis 反序列化不一致的问题:
https://developer.aliyun.com/article/794461
解决方案:
private List<Object> sessionKeys;
变为:
private List<String> sessionKeys;
2. 使用websocket遇到的一个小问题 The remote endpoint was in state [TEXT_PARTIAL_WRITING] which is an invalid stat
: https://blog.csdn.net/qq_20641565/article/details/80857408
3. HTTPS站点使用WebSocket的错误及解决方案:
https://blog.csdn.net/joshua317/article/details/120216046
同时将ws协议改为wss协议, 即可