Skip to content

Commit 263a0a9

Browse files
committed
Note that socket.bind may throw
1 parent 3c9f92c commit 263a0a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/Runtime Environment/Socket.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ A convenience function that wraps `socket.listen`, automatically accepting new c
2727
1. A [scheduler](Scheduler) instance.
2828
2. Either an int with the port to listen on or a string such as `1.2.3.4:567` for systems with multiple public-facing addresses.
2929
3. The callback function that will be called in a new coroutine for each client socket.
30+
#### Errors
31+
Raises an error to the caller if the port could not be bound.
32+
3033
```pluto norun
3134
local { scheduler, socket } = require "*"
3235

0 commit comments

Comments
 (0)