ServerOpts
[<Interface>]
type ServerOpts =
abstract member allowHalfOpen: bool option with get, set
abstract member blockList: BlockList option with get, set
abstract member highWaterMark: float option with get, set
abstract member keepAlive: bool option with get, set
abstract member keepAliveInitialDelay: float option with get, set
abstract member noDelay: bool option with get, set
abstract member pauseOnConnect: bool option with get, set
static member Create (?allowHalfOpen: bool, ?pauseOnConnect: bool, ?noDelay: bool, ?keepAlive: bool, ?keepAliveInitialDelay: float, ?highWaterMark: float, ?blockList: BlockList) : ServerOpts| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
Properties
abstract member allowHalfOpen: bool option with get, set
abstract member allowHalfOpen: bool option with get, setIndicates whether half-opened TCP connections are allowed.
abstract member blockList: BlockList option with get, set
abstract member blockList: BlockList option with get, setblockList can be used for disabling inbound access to specific IP addresses, IP ranges, or IP subnets. This does not work if the server is behind a reverse proxy, NAT, etc. because the address checked against the block list is the address of the proxy, or the one specified by the NAT.
@since v22.13.0
abstract member highWaterMark: float option with get, set
abstract member highWaterMark: float option with get, setOptionally overrides all net.Sockets' readableHighWaterMark and writableHighWaterMark.
@since v18.17.0, v20.1.0
abstract member keepAlive: bool option with get, set
abstract member keepAlive: bool option with get, setIf set to true, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, similarly on what is done in socket.setKeepAlive([enable][, initialDelay]).
@since v16.5.0
abstract member keepAliveInitialDelay: float option with get, set
abstract member keepAliveInitialDelay: float option with get, setIf set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
@since v16.5.0
abstract member noDelay: bool option with get, set
abstract member noDelay: bool option with get, setIf set to true, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
@since v16.5.0
abstract member pauseOnConnect: bool option with get, set
abstract member pauseOnConnect: bool option with get, setIndicates whether the socket should be paused on incoming connections.