websocket爲一次HTTP握手後,後續通信爲tcp協議的通信方式。web
http通信方式爲http開頭的方式,e.g. http://xxx.com/path ,websocket
websocket通信方式則爲ws開頭的方式,e.g. ws://xxx.com/pathsocket
SSL:tcp
HTTPS: https://xxx.com/pathqq
WEBSOCKET: wss://xxx.com/path協議
https://mp.weixin.qq.com/s/w9Y40CnYSQp8dWYkkBu5oQco