@pistonite/workex
    Preparing search index...

    Type Alias WxCloseController

    Controller for closing the messaging channel

    type WxCloseController = {
        close: () => void;
        isClosed: () => boolean;
        onClose: (callback: () => void) => () => void;
    }
    Index

    Properties

    close: () => void

    Mark the channel as closed and unregisters all message handlers registered by the end. If handshake is still in progress, it will be aborted.

    isClosed: () => boolean

    Check if the end is closed

    onClose: (callback: () => void) => () => void

    Add a subscriber to the close event. The subscriber will be called when the end is closed at most once