-
《理解full-duplex||IETF||RFC||Web IDL||W3C》
《RFC6455》
WebSocket
is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.The
WebSocket
protocol was standardized by theIETF
asRFC 6455
in2011
, and theWebSocket API
inWeb IDL
is being standardized by theW3C
.WebSocket
is distinct fromHTTP
,RFC 6455
states that WebSocket “is designed to work over HTTP ports443
and80
as well as to support HTTP proxies and intermediaries”. To achieve compatibility, theWebSocket
handshake uses the HTTP upgrade header to change from the HTTP protocol to theWebSocket
protocol.The name “
WebSocket
” was coined by Ian Hickson and Michael Carter. -
Websocket in Python
-
websocket-client
pip install websocket-client
import websocket
-
websockets
pip install websocekts
import websocekts
websocket-client
just support client creation, but thewebsockets
support client and server.新手有限使用websocket-client,简单,容易上手.
再次理解websocket in Python
猜你喜欢
转载自blog.csdn.net/The_Time_Runner/article/details/111409448
今日推荐
周排行