twilio-client.js
twilio-client.js copied to clipboard
[FEATURE] Connection.EventName Enum
Describe the solution you'd like It would be helpful if we could get a enum for Connection.EventName:
declare namespace Connection {
enum EventName{
ACCEPT = 'accept',
CANCEL = 'cancel',
DISCONNECT = 'disconnect',
ERROR = 'error',
MUTE = 'mute',
RECONNECTING = 'reconnecting',
RECONNECTED = 'reconnected',
REJECT = 'reject',
RINGING = 'ringing',
SAMPLE = 'sample',
VOLUME = 'volume',
WARNING = 'warning',
WARNING_CLEARED = 'warning-cleared',
TRANSPORT_CLOSE = 'transportClose' //This one's in connections.js but I'm not sure if it's relevant.
}
}
This would be similar to the existing Device.EventName
enum.
Thanks @cesaric, I agree these should be enumerated. I've created a ticket internally that we will assign a priority to soon.