Tag Archives: websocket

websocket传图片

使用websocket传送图片时,出现图片太大无法传送,解决办法: 发送时 let splitCount = val.length % 6000 == 0 ? val.length / 6000 : Math.ceil(val.length / 6000); if(splitCount){ for (let i = 0; i < splitCount; i++) { let imgStr = ... read more
  • 10
  • 0