websocket

 

websocket爲一次HTTP握手後,後續通信爲tcp協議的通信方式。web

http通信方式爲http開頭的方式,e.g. http://xxx.com/path ,websocket

websocket通信方式則爲ws開頭的方式,e.g. ws://xxx.com/pathsocket

 

SSL:tcp

  1. HTTPS: https://xxx.com/pathqq

  2. WEBSOCKET: wss://xxx.com/path協議

 

https://mp.weixin.qq.com/s/w9Y40CnYSQp8dWYkkBu5oQco

相關文章
相關標籤/搜索