mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-05-14 05:24:21 +00:00
add bufferSize parameter to UDP server documentation
This commit is contained in:
@@ -9,6 +9,7 @@ The `net.udp.server` module emits a message for every incoming UDP datagram.
|
||||
- **params**:
|
||||
- **ip**: (optional) IP address to bind the UDP server to, if left out it will listen on all interfaces
|
||||
- **port**: UDP port to listen on
|
||||
- **bufferSize**: (optional) Size of the read buffer for incoming UDP datagrams, defaults to `2048`
|
||||
|
||||
### Example
|
||||
Start a UDP server listening on port 8888 and only on `127.0.0.1`
|
||||
|
||||
Reference in New Issue
Block a user