OxL Reference

method net.dropConnections

Breaks every client connection of this process (the sockets are shut down). A call in flight fails with Unavailable; a @resumable stream reconnects with its last offset (§10.3); the next call opens a new connection.

Example:

oxl✓ checked in CI
use std.test { net }

test "dropped connections reconnect" {
  net.dropConnections()
}
pub(api) static fn dropConnections() net

Since. 1.0.0-beta

Effects

net

Defined in: std/test/test.oxl:81

See also