byte data = new bytestep; int readSize = 0; while readSize = inputStreamreaddata != -1 WebSocketUtilsendBinaryMessageByteStringofdata; Threadsleep200;
var data = Buffer.alloc(step); var readSize = 0;
while ((readSize = inputStream.read(data)) !== -1) { WebSocketUtil.sendBinaryMessage(data); await new Promise(resolve => setTimeout(resolve, 200)); }
原文地址: http://www.cveoy.top/t/topic/h8Zu 著作权归作者所有。请勿转载和采集!