SSRCMap

export declare class SSRCMap extends EventEmitter
export declare class SSRCMap extends EventEmitter
Maps audio SSRCs to data of users in voice connections.

Extends

EventEmitter
constructor()
Constructs a new instance of the SSRCMap class
NameTypeOptionalDescription
delete(target):VoiceUserData | undefined
Deletes the stored voice data about a user.
Returns
The data that was deleted, if any
NameTypeOptionalDescription
targetnumber | stringNoThe target of the delete operation, either their audio SSRC or user id
get(target):VoiceUserData | undefined
Gets the stored voice data of a user.
NameTypeOptionalDescription
targetnumber | stringNoThe target, either their user id or audio SSRC
update(data):void
Updates the map with new user data
NameTypeOptionalDescription
dataVoiceUserDataNoThe data to update with
on(event, listener):this
NameTypeOptionalDescription
event'create'NoNone
listener(newData: VoiceUserData) => voidNoNone