:sig
function socket_write(handle : u64, data : string, timeout : s32 = 0) bool

:returns
`true` when the write succeeds.

:content
Use `socket_write` to send data to a socket. It writes everything or returns `false`. `timeout` is in seconds; `0` means the rest of the request's time budget, which always applies.

:example capy render
var handle := socket_connect("127.0.0.1", 1)
if handle != 0 { print(socket_write(handle, "hello"), "\n"); socket_close(handle) }

:see-group
sockets
