00 06 00 03 00 05 61 63 6B 3A 30 00 00 00 76 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 7B 22 74 79 70 65 22 3A 22 32 30 37 22 2C 22 74 69 6D 65 22 3A 31 35 30 32 33 34 32 31 33 34 2C 22 64 61 74 61 22 3A 7B 22 66 72 6F 6D 22 3A 7B 22 72 69 64 22 3A 22 2D 31 22 7D 2C 22 74 6F 22 3A 7B 22 74 6F 72 6F 6F 6D 22 3A 22 31 32 34 30 34 32 38 22 7D 2C 22 63 6F 6E 74 65 6E 74 22 3A 22 31 31 22 7D 7D
ack:0vf{"type":"207","time":1502342134,"data":{"from":{"rid":"-1"},"to":{"toroom":"1240428"},"content":"11"}}
00 06 00 03 00 05 61 63 6B 3A 30 00 00 00 8D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D 7B 22 74 79 70 65 22 3A 22 32 30 35 22 2C 22 74 69 6D 65 22 3A 31 35 30 32 33 34 32 31 33 34 2C 22 64 61 74 61 22 3A 7B 22 66 72 6F 6D 22 3A 7B 22 72 69 64 22 3A 22 2D 31 22 7D 2C 22 74 6F 22 3A 7B 22 74 6F 72 6F 6F 6D 22 3A 22 31 32 34 30 34 32 38 22 7D 2C 22 63 6F 6E 74 65 6E 74 22 3A 7B 22 73 68 6F 77 5F 6E 75 6D 22 3A 31 31 2C 22 74 6F 74 61 6C 22 3A 36 33 36 7D 7D 7D
ack:0?}{"type":"205","time":1502342134,"data":{"from":{"rid":"-1"},"to":{"toroom":"1240428"},"content":{"show_num":11,"total":636}}}
00060001
00060001
00060001
00 06 00 03 00 05 61 63 6B 3A 30 00 00 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 7B 22 74 79 70 65 22 3A 22 32 30 37 22 2C 22 74 69 6D 65 22 3A 31 35 30 32 33 34 32 31 36 36 2C 22 64 61 74 61 22 3A 7B 22 66 72 6F 6D 22 3A 7B 22 72 69 64 22 3A 22 2D 31 22 7D 2C 22 74 6F 22 3A 7B 22 74 6F 72 6F 6F 6D 22 3A 22 31 32 34 30 34 32 38 22 7D 2C 22 63 6F 6E 74 65 6E 74 22 3A 22 31 35 22 7D 7D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D 7B 22 74 79 70 65 22 3A 22 32 30 35 22 2C 22 74 69 6D 65 22 3A 31 35 30 32 33 34 32 31 36 36 2C 22 64 61 74 61 22 3A 7B 22 66 72 6F 6D 22 3A 7B 22 72 69 64 22 3A 22 2D 31 22 7D 2C 22 74 6F 22 3A 7B 22 74 6F 72 6F 6F 6D 22 3A 22 31 32 34 30 34 32 38 22 7D 2C 22 63 6F 6E 74 65 6E 74 22 3A 7B 22 73 68 6F 77 5F 6E 75 6D 22 3A 31 35 2C 22 74 6F 74 61 6C 22 3A 36 33 36 7D 7D 7D
ack:0f{"type":"207","time":1502342166,"data":{"from":{"rid":"-1"},"to":{"toroom":"1240428"},"content":"15"}}}{"type":"205","time":1502342166,"data":{"from":{"rid":"-1"},"to":{"toroom":"1240428"},"content":{"show_num":15,"total":636}}}
00060001
首包
00 06 00 02 00 60 75 3A 2D 32 38 37 34 39 34 33
34 40 31 33 34 35 39 32 34 38 39 0A 6B 3A 31 0A
74 3A 33 30 0A 74 73 3A 31 34 37 32 38 38 32 36
37 30 30 30 30 0A 73 69 67 6E 3A 64 34 33 32 61
34 62 64 62 31 62 61 37 36 65 36 38 64 63 33 33
31 66 38 64 38 64 35 38 33 64 65 0A 61 75 74 68
74 79 70 65 3A 33
参数中间的.为0A 为换行符
.....`u:-28749434@134592489{0a}k:1{0a}t:30{0a}ts:1472882670000{0a}sign:d432a4bdb1ba76e68dc331f8d8d583de{0a}authtype:3
返回
00000000 00 06 00 06 00 10 69 64 3A 31 33 34 35 39 32 34 ......id :1345924
00000010 38 39 0A 72 3A 30 89.r:0
心跳
00 06 00 00
获取游客参数
GET http://www.panda.tv/ajax_chatroom?roomid=374761&_=1472883133520 HTTP/1.1
Host: www.panda.tv
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
X-Requested-With: ShockwaveFlash/22.0.0.192
Accept: */*
Referer: http://www.panda.tv/374761
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: __guid=0.1134939496064730400.1472880785872.9392; aliyungf_tc=AQAAAAvaU2OW+gsA5ziG2+2iN9va6o+7; monitor_count=7; Hm_lvt_204071a8b1d0b2a04c782c44b88eb996=1472880786,1472882658; Hm_lpvt_204071a8b1d0b2a04c782c44b88eb996=1472883132; smid=6e4d7e8d-4031-4126-bbdb-221fc2b71474; sm_test_cookie_enable=null
{"errno":0,"data":{"sign":"46f2f19f0b465d9a65bc6de60df54a8f","roomid":374761,"rid":-6837313,"ts":1472883125262},"errmsg":""}
获取房间参数
GET /chatroom/getinfo?rid=-28749434&roomid=374761&retry=0&sign=16ab8c5be80aec55aa8ac67c39b927c9&ts=1472882670214&_=1472882678508 HTTP/1.1
Host: riven.panda.tv
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
X-Requested-With: ShockwaveFlash/22.0.0.192
Accept: */*
Referer: http://www.panda.tv/374761
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: Hm_lvt_204071a8b1d0b2a04c782c44b88eb996=1472880786,1472882658; Hm_lpvt_204071a8b1d0b2a04c782c44b88eb996=1472882677; smid=6e4d7e8d-4031-4126-bbdb-221fc2b71474; sm_test_cookie_enable=null
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Date: Sat, 03 Sep 2016 06:04:30 GMT
Server: nginx
X-Server: rivenc12v,rivend7v
Content-Length: 205
Connection: keep-alive
{"errno":0,"errmsg":"","data":{"appid":"134592489","rid":-28749434,"sign":"d432a4bdb1ba76e68dc331f8d8d583de","authType":"3","ts":1472882670000,"chat_addr_list":["54.222.146.133:443","54.222.215.121:443"]}}
获取房间人数
get
http://www.panda.tv/room_followinfo?roomid=374761&_=1472883132653
返回
{"errno":0,"errmsg":"","data":{"fans":460,"is_followed":"0"}}
备份下,有个易语言的例子!看不太懂!再研究研究哈!