xk6-tcp
    Preparing search index...

    Type Alias SocketState

    SocketState: "opening" | "open" | "destroyed" | "disconnected"

    Represents the current state of a TCP socket connection.

    Socket lifecycle transitions:

    • disconnected → Initial state after construction
    • opening → During connection establishment (after connect() called)
    • open → Successfully connected and ready for I/O
    • destroyed → Terminal state, socket cannot be reused