Updated handler test to send response back to test client.

This commit is contained in:
Tristan B. Kildaire 2020-05-09 11:17:24 +02:00
parent 8f0ddd766a
commit 7972eb3235
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ def runTest():
bys = json.dumps({
"header" : {
"status" : "0",
"command" : {"type" : "sendServers", "data": ["10.1.0.7:2223"]}
}, "data" : receivedBys })
"command" : {"type" : "sendClients", "data": ["deavmi"]}
}, "data" : "length of your data: " + str(len(receivedBys)) + "\"" + receivedBys + "\"" })
print(s.send(len(bys).to_bytes(4, "little")))
print(s.send(bys.encode()))