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

    Type Alias LifecycleHooks

    All lifecycle hooks (server-side).

    Index

    Properties

    onConnect: OnConnectHook

    Called when client sends CONNECT; return CONNACK

    onDisconnect?: OnDisconnectHook

    Called when connection closed

    onError?: OnErrorHook

    Called on protocol errors

    onPublish?: OnPublishHook

    Called when client sends PUBLISH

    onSend: OnSendHook

    Called when packet ready to send to client (required)

    onSubscribe?: OnSubscribeHook

    Called when client sends SUBSCRIBE; return SUBACK

    onUnsubscribe?: OnUnsubscribeHook

    Called when client sends UNSUBSCRIBE; return UNSUBACK