nx.js
NamespacesSwitchInterfaces

DatagramOptions

Options for creating a datagram socket.

See

Switch.listenDatagram()

Properties

PropertyTypeDescription
ip?stringThe IP address of the network interface to bind to. Default "0.0.0.0"
message?(e: DatagramEvent) => voidHandler invoked when a datagram is received. This is a shorthand for: socket.addEventListener('message', handler);
port?numberThe port number to bind to. Pass 0 or omit for a random port. Default 0

On this page