Interfaces
ListenOptions
Options object for the listen()
function.
Extends
Omit
<Switch.ListenOptions
,"accept"
>
Properties
Property | Type | Description | Inherited from |
---|---|---|---|
fetch | ServerHandler | - | - |
ip? | string | The IP address of the network interface to bind to. If not defined, defaults to 0.0.0.0 to allow connections on any network device. Example "127.0.0.1" | Omit.ip |
port | number | The port number to accept TCP connection from. Example 80 | Omit.port |