The connected event fires when the WebSocket connection to the SIP server is established.
Emitted when the WebSocket connection to the SIP server is established. If the endpoint requires SIP registration, this event is emitted before the registration. In this case, wait for the registered event before making calls. If the endpoint doesn’t require registration, you can make calls after connect() finishes.