mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
тест для udp + фикс udp
This commit is contained in:
parent
49ba8e2185
commit
13fdea0a40
2 changed files with 37 additions and 1 deletions
|
|
@ -144,7 +144,11 @@ network.udp_connect = function (address, port, datagramHandler, openCallback)
|
|||
socket.id = network.__connect_udp(address, port)
|
||||
|
||||
_udp_client_datagram_callbacks[socket.id] = datagramHandler
|
||||
_udp_client_open_callbacks[socket.id] = openCallback
|
||||
if openCallback then
|
||||
_udp_client_open_callbacks[socket.id] = function()
|
||||
openCallback(socket)
|
||||
end
|
||||
end
|
||||
|
||||
return socket
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue