Interface MessageSubscriptionResponse

A response object that allows you to control a message subscription.

interface MessageSubscriptionResponse {
    unsubscribe: (() => void);
    getPreviousMessages(params: Omit<QueryOptions, "direction">): Promise<PaginatedResult<Message>>;
}

Properties

unsubscribe: (() => void)

Unsubscribe the listener registered with Messages.subscribe from message events.

Methods