Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 637 Bytes

File metadata and controls

35 lines (22 loc) · 637 Bytes

Home > sip.js > UserAgent > start

UserAgent.start() method

Start the user agent.

Signature:

start(): Promise<void>;

Returns:

Promise<void>

Remarks

Resolves if transport connects, otherwise rejects.

Example

userAgent.start()
  .then(() => {
    // userAgent.isConnected() === true
  })
  .catch((error: Error) => {
    // userAgent.isConnected() === false
  });