export declare class SSRCMap extends EventEmitter
export declare class SSRCMap extends EventEmitter
Maps audio SSRCs to data of users in voice connections.
Extends
EventEmitterconstructor()
Constructs a new instance of the
SSRCMap
className | Type | Optional | Description |
---|
Deletes the stored voice data about a user.
Name | Type | Optional | Description |
---|---|---|---|
target | number | string | No | The target of the delete operation, either their audio SSRC or user id |
Gets the stored voice data of a user.
Name | Type | Optional | Description |
---|---|---|---|
target | number | string | No | The target, either their user id or audio SSRC |
update(data)
:
void
Updates the map with new user data
Name | Type | Optional | Description |
---|---|---|---|
data | VoiceUserData | No | The data to update with |
on(event, listener)
:
this
Name | Type | Optional | Description |
---|---|---|---|
event | 'create' | No | None |
listener | (newData: VoiceUserData) => void | No | None |