mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Update network_tcp.lua
This commit is contained in:
parent
9dacf7038f
commit
be6be8839f
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ for i=1,3 do
|
|||
print("client-listener started")
|
||||
local received_text = ""
|
||||
while client:is_alive() and #received_text < #text do
|
||||
client:peek(math.random(0, 100))
|
||||
local received = client:recv(512)
|
||||
if received then
|
||||
received_text = received_text .. utf8.tostring(received)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue