@qualithm/mqtt-wire - v0.8.0
    Preparing search index...

    Type Alias OnConnectHook

    OnConnectHook: (
        packet: ConnectPacket,
        context: HookContext,
    ) => ConnackPacket | Promise<ConnackPacket>

    Hook called when client sends CONNECT.

    Validates the connection request and returns CONNACK. Throw an error to reject the connection.

    Type Declaration