DatagramOptions
Options for creating a datagram socket.
See
Properties
| Property | Type | Description |
|---|---|---|
ip? | string | The IP address of the network interface to bind to. Default "0.0.0.0" |
message? | (e: DatagramEvent) => void | Handler invoked when a datagram is received. This is a shorthand for: socket.addEventListener('message', handler); |
port? | number | The port number to bind to. Pass 0 or omit for a random port. Default 0 |