feat:补包序号修改
This commit is contained in:
		
							parent
							
								
									0c32b01285
								
							
						
					
					
						commit
						d69b2e23e0
					
				| @ -114,8 +114,8 @@ function handReceiveMessage(client: socket.TCPSocket, sendData, rData: ArrayBuff | ||||
|       const start = index * 2; | ||||
|       const end = start + 1; | ||||
|       const packageIndex =  bytesToDecimal([packages[start],packages[end]]); | ||||
|       console.info(TAG, '补包内容' + JSON.stringify(new Uint8Array(sendData[packageIndex]))) | ||||
|       client.send({data:new Uint8Array(sendData[packageIndex]).buffer}); | ||||
|       console.info(TAG, '补包内容' + JSON.stringify(new Uint8Array(sendData[packageIndex-1]))) | ||||
|       client.send({data:new Uint8Array(sendData[packageIndex-1]).buffer}); | ||||
|     }) | ||||
|   } else { | ||||
|     const decoder = util.TextDecoder.create('utf-8'); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user