update doc/*/scripting/builtins/libnetwork.md

This commit is contained in:
MihailRis
2025-11-15 12:48:50 +03:00
parent f8be3e74f1
commit c7680ea196
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -57,7 +57,10 @@ network.tcp_connect(
-- Function called upon successful connection
-- Sending will not work before connection
-- Socket is passed as the only argument
callback: function(Socket)
callback: function(Socket),
-- Function called when a connection error occurs
-- Arguments passed: socket and error text
[optional] error_callback: function(Socket, str)
) --> Socket
```