Skip to content

@sourceloop/video-conferencing-service / Exports / ChatSessionService

Class: ChatSessionService

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ChatSessionService(videoChatSessionRepository, videoChatProvider, generator, sessionAttendeesRepository, config)

Parameters

Name Type
videoChatSessionRepository VideoChatSessionRepository
videoChatProvider VideoChatInterface
generator MeetingLinkIdGenerator
sessionAttendeesRepository SessionAttendeesRepository
config IConfig

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:31

Properties

config

Private Readonly config: IConfig

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:41


generator

generator: MeetingLinkIdGenerator

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:37


sessionAttendeesRepository

Private Readonly sessionAttendeesRepository: SessionAttendeesRepository

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:39


videoChatProvider

Private Readonly videoChatProvider: VideoChatInterface

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:35


videoChatSessionRepository

Private Readonly videoChatSessionRepository: VideoChatSessionRepository

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:33

Methods

checkWebhookPayload

checkWebhookPayload(webhookPayload): Promise<void>

Parameters

Name Type
webhookPayload VonageSessionWebhookPayload

Returns

Promise<void>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:236


editMeeting

editMeeting(meetingLinkId, body): Promise<void>

Parameters

Name Type
meetingLinkId string
body Partial<VideoChatSession>

Returns

Promise<void>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:151


endSession

endSession(meetingLinkId): Promise<void>

Parameters

Name Type
meetingLinkId string

Returns

Promise<void>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:207


getAttendeesList

getAttendeesList(meetingLinkId, active): Promise<SessionAttendees[]>

Parameters

Name Type
meetingLinkId string
active string

Returns

Promise<SessionAttendees[]>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:261


getMeetingLink(meetingOptions): Promise<string>

Parameters

Name Type
meetingOptions MeetingOptions

Returns

Promise<string>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:44


getMeetingToken

getMeetingToken(sessionOptions, meetingLinkId): Promise<SessionResponse>

Parameters

Name Type
sessionOptions SessionOptions
meetingLinkId string

Returns

Promise<SessionResponse>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:83


processStreamDestroyedEvent

processStreamDestroyedEvent(webhookPayload, sessionAttendeeDetail, updatedAttendee): Promise<void>

Parameters

Name Type
webhookPayload VonageSessionWebhookPayload
sessionAttendeeDetail SessionAttendees
updatedAttendee Partial<SessionAttendees>

Returns

Promise<void>

Defined in

services/video-conferencing-service/src/services/chat-session.service.ts:239