国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - The information received by WebSocket is binary. How to parse it?
天蓬老師
天蓬老師 2017-05-16 13:44:39
0
1
1152

I grabbed other people’s ws information and got Blob type data. How should I parse it??

天蓬老師
天蓬老師

歡迎選擇我的課程,讓我們一起見證您的進(jìn)步~~

reply all(1)
僅有的幸福

Although websocket is based on TCP, a protocol on the same layer as HTTP, its frame structure is indeed quite complicated, but what can be done? . .
The following article has an introduction to the frame structure of websocket. Those who are familiar with binary operations can follow the analysis.
Learn the WebSocket protocol - the implementation principle from the top to the bottom
If you are not familiar with the binary protocol, just use the algorithm provided online. Here is a PHP version for reference:
WEBsocket Chat Room

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template