wsInstance.onmessage = function (ev) {
console.warn(ev)
if (!_this.recvPause) {
let data = ev.data
if (_this.recvClean) _this.messageData = [];
let reader = new FileReader();
reader.readAsArrayBuffer(data,'utf-8');
reader.onload = function(){
console.log("blob转arrayBuffer", reader.result);
let inflatedData = pako.inflate(reader.result, {
to:"string"
})
_this.writeNews(0, inflatedData);
}
}
}
forked from sy-records/wstool
-
Notifications
You must be signed in to change notification settings - Fork 0
karp90000/wstool
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Blob WebSocket在线测试工具
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 95.7%
- HTML 4.3%