twilio-client.js icon indicating copy to clipboard operation
twilio-client.js copied to clipboard

[FEATURE] Connection.EventName Enum

Open cesaric opened this issue 4 years ago • 1 comments

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.

cesaric avatar Dec 05 '20 01:12 cesaric

Thanks @cesaric, I agree these should be enumerated. I've created a ticket internally that we will assign a priority to soon.

liberty-rowland avatar Aug 09 '21 15:08 liberty-rowland