Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Enumerations

Interfaces

Type aliases

Variables

Functions

Type aliases

ChatRoomApiStreamEventDetails

DateTime

DateTime: Date | string | number

IChatMessageRequestPayload

IChatMessageResponsePayload

IChatRoomApiStreamResponse

IChatUserMessageResponsePayload

IChatUserMessageResponsePayload: IMessageResponsePayload | IQuoteMessageResponsePayload

IMessageListIteratorResult

IMessageListIteratorResult: Promise<IteratorResult<{ messages: IChatMessageResponsePayload[] }, { messages: IChatMessageResponsePayload[] }>>

IQuoteMessagePropType

IQuoteMessagePropType: IMessageResponsePayload | Omit<IQuoteMessageResponsePayload, "quote_message" | "reactions">

IQuoteMessageRequestPayload

IQuoteMessageRequestPayload: IQuoteMessagePayload & IMessageRequestPayload

IQuoteMessageResponsePayload

IQuoteMessageResponsePayload: IQuoteMessagePayload & IMessageResponsePayload

ListenerFn

ListenerFn<TEvent, TMessage>: (msg: ListenerEventMessage<TEvent, TMessage>) => void

Type parameters

  • TEvent = any

  • TMessage = any

Type declaration

MessageListenerCallback

MessageListenerCallback: (args: IMessageListenerCallbackArgs) => unknown

Type declaration

MessagePreparationCallback

MessagePreparationCallback: (message: IMessageResponse) => IMessageResponse

Type declaration

ReactionSpaceEventListenerMap

ReactionSpaceEventListenerMap: { reaction-space-updated: ListenerFn<UPDATE_REACTION_SPACE, IReactionSpace>; user-reaction-added: ListenerFn<ADD_REACTION, IUserReaction>; user-reaction-removed: ListenerFn<REMOVE_REACTION, IUserReaction> }

Type declaration

SdkEventListenerMap

SdkEventListenerMap: { INITIALISED: any }

Type declaration

SubscriptionEvent

SubscriptionEventEnums

SubscriptionEventEnums: typeof Events

SubscriptionEventListenerFn

SubscriptionEventListenerFn: ListenerFn<SubscriptionEvent, any>

SubscriptionEventValuesOf

SubscriptionEventValuesOf<E>: E[keyof E]

Type parameters

  • E

VideoRoomEventListenerMap

VideoRoomEventListenerMap<ListenerArgs>: { ERROR: any; PARTICIPANT_JOIN: any; PARTICIPANT_LEFT: any; RECONNECTING: any }

Type parameters

Type declaration

  • ERROR:function
    • ERROR(errorDetails: ListenerArgs["errorDetails"]): void
    • Parameters

      • errorDetails: ListenerArgs["errorDetails"]

      Returns void

  • PARTICIPANT_JOIN:function
    • PARTICIPANT_JOIN(participant: ListenerArgs["participant"]): void
    • Parameters

      • participant: ListenerArgs["participant"]

      Returns void

  • PARTICIPANT_LEFT:function
    • PARTICIPANT_LEFT(participant: ListenerArgs["participant"]): void
    • Parameters

      • participant: ListenerArgs["participant"]

      Returns void

  • RECONNECTING:function
    • RECONNECTING(): void
    • Returns void

Variables

ChatUserMessageEventType

ChatUserMessageEventType: readonly [MESSAGE_CREATED, IMAGE_CREATED, MESSAGE_DELETED, IMAGE_DELETED, CHATROOM_UPDATED] = ...

Events

Events: { ADDED: "reactionadded"; DELETED: "messagedeleted"; FAILED: "messagefailed"; MESSAGES: "messagehistory"; RECEIVED: "messagereceived"; REMOVED: "reactionremoved"; ROOMENTER: "roomentered"; ROOMEXIT: "roomexited"; SENT: "messagesent"; UPDATED: "messageupdated" } = ...

Type declaration

  • ADDED: "reactionadded"
  • DELETED: "messagedeleted"
  • FAILED: "messagefailed"
  • MESSAGES: "messagehistory"
  • RECEIVED: "messagereceived"
  • REMOVED: "reactionremoved"
  • ROOMENTER: "roomentered"
  • ROOMEXIT: "roomexited"
  • SENT: "messagesent"
  • UPDATED: "messageupdated"

MessageEvents

MessageEvents: { added: "reactionadded"; chatroom-updated: "chatroom-updated"; custom-message-created: "messagereceived"; image-created: "messagereceived"; image-deleted: "messagedeleted"; message-created: "messagereceived"; message-deleted: "messagedeleted"; message-sent: "messagesent"; message-updated: "messageupdated"; removed: "reactionremoved" } = ...

Type declaration

  • added: "reactionadded"
  • chatroom-updated: "chatroom-updated"
  • custom-message-created: "messagereceived"
  • image-created: "messagereceived"
  • image-deleted: "messagedeleted"
  • message-created: "messagereceived"
  • message-deleted: "messagedeleted"
  • message-sent: "messagesent"
  • message-updated: "messageupdated"
  • removed: "reactionremoved"

_$$

_$$: IApiGlobal = ...

_config

_config: { apiDocVersion: string; ready: boolean; version: string } = ...

Type declaration

  • apiDocVersion: string
  • ready: boolean
  • version: string

chatUserMessageEvents

chatUserMessageEvents: ChatMessageEvent[] = ...

subscriptionCoordinator

subscriptionCoordinator: { addListener: (channel: string, callback: SubscriptionEventListenerFn, event?: SubscriptionEvent) => void; initialisePubnub: (pnConfig: IPubnubConfig) => void; listeners: Record<string, SubscriptionEventListenerFn[]>; removeAllListenersForEvent: (channel: string, event: SubscriptionEvent) => Record<string, SubscriptionEventListenerFn[]>; removeListener: (channel: string, callback: SubscriptionEventListenerFn, event?: SubscriptionEvent) => Record<string, SubscriptionEventListenerFn[]>; subscribe: (channel: any) => void; unsubscribe: (channel: any) => void } = ...

Type declaration

userProfile

userProfile: IUserProfile = ...

Functions

addChatRoomEventListener

  • addChatRoomEventListener<_Event, _EventListener>(chatRoomEvent: _Event, listenerFn: _EventListener, options: IChatRoomEventListenerOptions): Promise<void>

Const addMessageListener

  • Adds a listener to a chatroom that calls passed callback function when event fires.

    since

    0.1.0

    example
    addMessageListener({roomId: string}, function(e){console.log(e)})
    

    Parameters

    Returns Promise<void>

addNewMemberToChatRoom

  • description

    Add new member to the chat room (requires roomId and profileId)

    async
    since

    0.1.0

    example
    addNewMemberToChatRoom({
    roomId: "9e6f1bc4-9f02-4c57-92b7-7521d0f5b027",
    profileId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7"
    }).then(membership => console.log(membership))

    Parameters

    Returns Promise<IChatRoomMembership>

    Promise

addReactionSpaceEventListener

  • addReactionSpaceEventListener<_Event, _EventListener>(eventArg: IReactionEventArg<_Event>, listenerFn: _EventListener): Promise<void>

addSdkEventListener

  • addSdkEventListener<_Event, ListenerFn>(sdkEvent: _Event, listenerFn: ListenerFn): void
  • description

    Add listener for a given SdkEvent

    since

    0.1.0

    example
    addSdkEventListener(SdkEvent.INITIALISED, function onSdkInitialisation(userProfile){
    console.log(userProfile);
    })

    Type parameters

    Parameters

    • sdkEvent: _Event
    • listenerFn: ListenerFn

    Returns void

addUserProfileEventListener

  • description

    Add listener for the given UserProfileEvent

    since

    0.1.0

    example
    addUserProfileEventListener(UserProfileEvent.BLOCK_PROFILE, function onBlockProfileListener(blockInfo){
    console.log(blockInfo);
    })

    Parameters

    Returns void

addUserReaction

  • description

    Add a user reaction

    async
    since

    0.1.0

    example
    addUserReaction({
    targetId: "target-1",
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    reactionId: "0fddc166-b8c3-4ce9-990e-848bde12188b"
    }).then(reaction => console.log(reaction))

    Parameters

    Returns Promise<IUserReaction>

blockProfile

  • description

    Block profile using profile Id

    async
    since

    0.1.0

    example
    blockProfile({profileId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7"}).then(blockInfo => console.log(blockInfo))
    

    Parameters

    Returns Promise<IBlockInfo>

Const createChatRoom

  • description

    Creates a new chat room

    async
    since

    0.1.0

    • createChatRoom({title: "Chat room name", content_filter: "filtered", visibility: "everyone"})
      

    Parameters

    Returns Promise<IChatRoomPayload>

    Promise

createReactionSpace

  • description

    Create a reaction space

    async
    since

    0.1.0

    example
    createReactionSpace({
    targetGroupId: "target-group-1",
    reactionPackIds: ["aa7e03fc-01f0-4a98-a2e0-3fed689632d7", "0fddc166-b8c3-4ce9-990e-848bde12188b"]
    }).then(reactionSpace => console.log(reactionSpace))

    Parameters

    Returns Promise<IReactionSpace>

Const createUserProfile

  • createUserProfile(args: { nickname?: string }): Promise<IUserProfile>
  • Creates user profile. If no nickname argument is passed, a random nickname will be generated.

    async
    since

    0.1.0

    example
    createUserProfile({ nickname: 'Test Nickname' }).then(profile => console.log(profile))
    

    Parameters

    • args: { nickname?: string }
      • Optional nickname?: string

        Optional nickname

    Returns Promise<IUserProfile>

deleteChatRoomInvitation

  • description

    Delete chat room invitation

    params

    args of type IDeleteChatRoomInvitation

    async
    since

    0.1.0

    example
    deleteChatRoomInvitation({
    invitationId: "28cc0ceb-8934-48cd-abc5-4d3a3a681c1b",
    }).then(res => console.log(res))

    Parameters

    Returns Promise<void>

    Promise

Const deleteMessage

  • description

    Delete a chatroom message using messageId

    since

    0.1.0

    async
    example
    deleteMessage({
    roomId: "a147f914-d474-4cfb-81c6-4099404c435a",
    messageId: "dd810f9f-09d5-4c6b-a0df-e43dee9b2994"
    }).then((res) => console.log(res))

    Parameters

    Returns Promise<void>

deleteReactionSpace

  • description

    Delete a reaction space

    async
    since

    0.1.0

    example
    deleteReactionSpace({
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    })

    Parameters

    Returns Promise<null>

getBlockInfoList

  • description

    Get Block Info list containing list of block info of all the blocked profile

    async
    since

    0.1.0

    example
    getBlockInfoList().then(paginatedBlockInfo => console.log(paginatedBlockInfo))
    

    Returns Promise<IPaginatedResponse<IBlockInfo>>

getBlockedProfileIds

  • description

    Get list of blocked profile ids, could be used to filter chat messages by blocked profile

    async
    since

    0.1.0

    example
    getBlockedProfileIds().then(profileIds => console.log(profileIds))
    

    Returns Promise<IPaginatedResponse<string>>

Const getChatRoom

  • description

    Gets chat room by roomId

    async
    since

    0.1.0

    getChatRoom({roomId: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'}).then((res) => console.log(res))
    

    Parameters

    Returns Promise<IChatRoomPayload>

    Promise

Const getChatRoomMemberships

Const getChatRooms

  • description

    Get all avaliable chat rooms in an application

    async
    since

    0.1.0

    example
    getChatRooms().then(paginatedResponse => console.log(paginatedResponse))
    

    Returns Promise<IPaginatedResponse<IChatRoomPayload>>

    paginated response with results as an array of chat room details

Const getChatUserMutedStatus

  • description

    Gets the muted status of the current user for a given chat room

    async
    since

    0.1.0

    Parameters

    Returns Promise<IMutedResponse>

    Promise - true if muted else false

getGifs

  • description

    Get list of gifs images

    async
    since

    0.1.0

    example
    getGifs({search: "thank you"}).then(({results}) => console.log(results))
    

    Parameters

    Returns Promise<IPaginatedResponse<IGif>>

    paginated response with results as an array of IGif

Const getMessageCount

  • getMessageCount Returns number of messages in chat room

    since

    0.1.0

    async
    example
    getMessageCount('c1f6082c-f7b9-4d1e-b64e-9071a3860ffc', {since: "2020-04-16T16:29:39.158Z"}).then(r => console.log(r.count))
    

    Parameters

    Returns Promise<IMessageCount>

Const getMessageList

  • getMessageList Returns array of message objects

    since

    0.1.0

    async
    example
    getMessageList(roomId: string).then(list => console.log(list))
    

    Parameters

    Returns Promise<IMessageListPayload>

getProfileBlockInfo

  • description

    Get Block Info for given profile id if exists

    async
    since

    0.1.0

    example
    getProfileBlockInfo({profileId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7"}).then(blockInfo => console.log(blockInfo))
    

    Parameters

    Returns Promise<IBlockInfo | undefined>

Const getProfileChatRoomMemberships

getReactionPackDetail

  • description

    Get reaction pack detail with collection of reactions using a reaction pack Id

    async
    since

    0.1.0

    example
    getReactionPackDetail({
    reactionPackId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    }).then(reactionPack => console.log(reactionPack))

    Parameters

    Returns Promise<IReactionPack>

getReactionPacks

  • description

    Get list of reaction packs in an application

    async
    since

    0.1.0

    example
    getReactionPacks().then(({results}) => console.log(results))
    

    Returns Promise<IPaginatedResponse<IReactionPack>>

getReactionSpaceDetail

  • description

    Get reaction space detail from reactionSpaceId or targetGroupId

    async
    since

    0.1.0

    example
    getReactionSpaceDetail({
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    }).then(reactionSpace => console.log(reactionSpace))

    OR

    getReactionSpaceDetail({
    targetGroupId: "target-group-1",
    }).then(reactionSpace => console.log(reactionSpace))

    Parameters

    Returns Promise<IReactionSpace>

getReactionSpaces

  • description

    Get list of reaction spaces in an application

    async
    since

    0.1.0

    example
    getReactionSpaces().then(({results}) => console.log(results))
    

    Returns Promise<IPaginatedResponse<IReactionSpace>>

getReceivedChatRoomInvitations

  • description

    Get list of chat room invitations received by the current user profile

    params

    args of type IGetInvitationsArgs

    async
    since

    0.1.0

    example
    getReceivedChatRoomInvitations({
    invitationStatus: ChatRoomInvitationStatus.PENDING
    }).then(paginatedInvitations => console.log(paginatedInvitations))

    Parameters

    Returns Promise<IPaginatedResponse<IChatRoomInvitation>>

    Promise<IPaginatedResponse>

getSentChatRoomInvitations

  • description

    Get list of chat room invitations sent by the current user profile

    params

    args of type IGetInvitationsArgs

    async
    since

    0.1.0

    example
    getSentChatRoomInvitations({
    invitationStatus: ChatRoomInvitationStatus.PENDING
    }).then(paginatedInvitations => console.log(paginatedInvitations))

    Parameters

    Returns Promise<IPaginatedResponse<IChatRoomInvitation>>

    Promise<IPaginatedResponse>

getStickerPackDetail

  • description

    Get sticker pack detail with collection of stickers using a stickerPackId

    async
    since

    0.1.0

    example
    getStickerPackDetail({
    stickerPackId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    }).then(stickerPack => console.log(stickerPack))

    Parameters

    Returns Promise<IStickerPack>

getStickerPacks

  • description

    Get list of sticker packs in an application

    async
    since

    0.1.0

    example
    getStickerPacks().then(({results}) => console.log(results))
    

    Returns Promise<IPaginatedResponse<IStickerPack>>

    paginated response with results as an array of IStickerPack

Const getUserProfile

  • getUserProfile(args: { accessToken?: string; profileId?: string }): Promise<IUserProfile>
  • Gets userProfile from accessToken.

    async
    since

    0.1.0

    example
    getUserProfile({ accessToken }).then(profile => console.log(profile))
    

    Parameters

    • args: { accessToken?: string; profileId?: string }
      • Optional accessToken?: string
      • Optional profileId?: string

    Returns Promise<IUserProfile>

getUserReactions

  • description

    Get list of user reaction based on argument object filters

    async
    since

    0.1.0

    example
    getUserReactions({
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    targetId: "0fddc166-b8c3-4ce9-990e-848bde12188b"
    }).then(paginatedReactions => console.log(paginatedReactions))

    Parameters

    Returns Promise<IPaginatedResponse<IUserReaction>>

getUserReactionsCount

  • description

    get count of user reactions for a given collection of target in a reaction space

    async
    since

    0.1.0

    example
    getUserReactionsCount({
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    targetIds: ["0fddc166-b8c3-4ce9-990e-848bde12188b"],
    }).then(reaction => console.log(reaction))

    Parameters

    Returns Promise<IPaginatedResponse<IReactionsCount>>

init

isChatMessageResponsePayload

isChatUserMessageResponsePayload

isCustomMessageResponsePayload

isQuoteMessagePayload

Const joinChatRoom

  • description

    Join chat room by roomId, current user becomes 'member' and is available in chatroom membership list

    async
    since

    0.1.0

    example
    joinChatRoom({roomId: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'})
    

    Parameters

    Returns Promise<IChatRoomMembership>

    Promise

Const leaveChatRoom

  • description

    Leave chat room by roomId, current user 'member' status removed from chatroom membership list

    async
    since

    0.1.0

    example
    leaveChatRoom({roomId: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'})
    

    Parameters

    Returns Promise<boolean>

    Promise - true if leaved else false

Const prepareOutgoingChatMessage

removeChatRoomEventListener

  • removeChatRoomEventListener<_Event, _EventListener>(chatRoomEvent: _Event, listenerFn: _EventListener, options: IChatRoomEventListenerOptions): Promise<void>

Const removeMessageListener

  • Removes listener from chatroom

    since

    0.1.0

    example
    removeMessageListener({roomId: string}, function(e){console.log(e)})
    

    Parameters

    Returns Promise<void>

removeReactionSpaceEventListener

  • removeReactionSpaceEventListener<_Event, _EventListener>(eventArg: IReactionEventArg<_Event>, listenerFn?: _EventListener): Promise<void>

removeSdkEventListener

  • removeSdkEventListener<_Event, ListenerFn>(sdkEvent: _Event, listenerFn: ListenerFn): void
  • description

    Remove registered listenerFn for the given SdkEvent, when no listener passed, all registered event listener will be removed

    since

    0.1.0

    example
    removeSdkEventListener(SdkEvent.INITIALISED, onSdkInitialisation);
    

    Type parameters

    Parameters

    • sdkEvent: _Event
    • listenerFn: ListenerFn

    Returns void

removeUserProfileEventListener

  • description

    Remove registered listenerFn for the given UserProfileEvent, when no listener passed, all registered event listener will be removed

    since

    0.1.0

    example
    removeUserProfileEventListener(UserProfileEvent.BLOCK_PROFILE, onBlockProfileListener);
    

    Parameters

    Returns void

removeUserReaction

  • description

    Remove a user reaction

    async
    since

    0.1.0

    example
    removeUserReaction({
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    userReactionId: "0fddc166-b8c3-4ce9-990e-848bde12188b"
    })

    Parameters

    Returns Promise<null>

Const reportMessage

  • description

    Report Chat Message

    since

    0.1.0

    async
    example
    reportMessage({
    roomId: "a147f914-d474-4cfb-81c6-4099404c435a",
    profileId: "c1ca9590-81d9-4da2-8d4f-85b24a35f81f",
    nickname: "Jon Doe",
    messageId: "d145e2f1-36df-4c5a-8157-078cbf366297",
    }).then((res) => console.log(res));

    Parameters

    Returns Promise<IReportChatMessageResponse>

sendChatRoomInviteToProfile

  • description

    Send chat room invite to profile (user)

    params

    args of type ISendChatRoomInviteArgs

    async
    since

    0.1.0

    example
    sendChatRoomInviteToProfile({
    roomId: "9e6f1bc4-9f02-4c57-92b7-7521d0f5b027",
    profileId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7"
    }).then(chatRoomInvitation => console.log(chatRoomInvitation))

    Parameters

    Returns Promise<IChatRoomInvitation>

    Promise

Const sendCustomMessage

  • sendCustomMessage Send custom message to chat room.

    since

    0.1.0

    async
    example
    sendCustomMessage({custom_data: 'Test message', roomId: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'})
    

    Parameters

    Returns Promise<ICustomMessageResponsePayload>

Const sendMessage

  • sendMessage Send user message to chat room.

    async
    since

    0.1.0

    example
    sendMessage({message: 'Test message', roomId: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'})
    

    Parameters

    Returns Promise<IMessageResponsePayload>

unblockProfile

  • description

    Unblock profile using Block Info id for a given blocked profile, use getProfileBlockInfo or getBlockInfoList to get corresponding profile block info id

    async
    since

    0.1.0

    example
    unblockProfile({blockId: "c327a72c-94e5-4f5a-bcef-16ee84d35077"}).then(response => console.log(response))
    

    Parameters

    Returns Promise<any>

Const updateChatRoom

  • description

    Updates chat room by id

    async
    since

    0.1.0

    updateChatRoom("5c9974ba-2180-4640-b949-eb9501d2f2ff", {
    title: "new title",
    content_filter: "none",
    visibility: "everyone",
    }).then((res) => console.log(res));

    Parameters

    Returns Promise<IChatRoomPayload>

    Promise

updateChatRoomInviteStatus

  • description

    Updates chat room invitation status

    params

    args of type IUpdateChatRoomInvitationStatusArgs

    async
    since

    0.1.0

    example
    updateChatRoomInviteStatus({
    invitationId: "28cc0ceb-8934-48cd-abc5-4d3a3a681c1b",
    invitationStatus: ChatRoomInvitationStatus.ACCEPTED
    }).then(chatRoomInvitation => console.log(chatRoomInvitation))

    Parameters

    Returns Promise<IChatRoomInvitation>

    Promise

updateReactionSpace

  • description

    Update a reaction space with reaction pack ids or reaction space name

    async
    since

    0.1.0

    example
    updateReactionSpace({
    reactionSpaceId: "aa7e03fc-01f0-4a98-a2e0-3fed689632d7",
    reactionPackIds: ["aa7e03fc-01f0-4a98-a2e0-3fed689632d7", "0fddc166-b8c3-4ce9-990e-848bde12188b"]
    }).then(reactionSpace => console.log(reactionSpace))

    Parameters

    Returns Promise<IReactionSpace>

Const updateUserProfile

  • updateUserProfile(args: { accessToken: string; options?: { custom_data?: string; nickname?: string } }): Promise<IUserProfile>
  • Updates profile by accessToken with optional changed nickname or custom_data.

    async
    since

    0.1.0

    example
    const options = {nickname: 'New Nickname'}
    updateUserProfile({accessToken, options}).then(profile => console.log(profile))

    Parameters

    • args: { accessToken: string; options?: { custom_data?: string; nickname?: string } }
      • accessToken: string

        userProfile access_token

      • Optional options?: { custom_data?: string; nickname?: string }
        • Optional custom_data?: string

          Data saved to profile's custom_data property

        • Optional nickname?: string

          The nickname to update the userProfile

    Returns Promise<IUserProfile>

Const uploadImage

  • description

    Upload a image to get image url for sending image message

    since

    0.1.0

    async
    example
    // For Web usage
    // get the image blob data from image uri, uri could be local file uri
    const imageBlob = await fetch(imageUri).then(res => res.blob())
    // create formdata and append "type" and "image" keys
    const imageFormData = new FormData();
    imageFormData.append('type', 'file')
    imageFormData.append('image', imageBlob)

    const { image_url } = await uploadImage({
    roomId: "a147f914-d474-4cfb-81c6-4099404c435a",
    imageFormData: imageFormData
    });

    Parameters

    Returns Promise<IUploadImageResponse>

Legend

  • Property
  • Method

Generated using TypeDoc