Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.49 KB

sip.js.transportstate.md

File metadata and controls

37 lines (26 loc) · 1.49 KB

Home > sip.js > TransportState

TransportState enum

Transport state.

Signature:

export declare enum TransportState 

Enumeration Members

Member Value Description
Connected "Connected" The connect() method resolved.
Connecting "Connecting" The connect() method was called.
Disconnected "Disconnected" The connect() method was rejected, or the disconnect() method completed, or network connectivity was lost.
Disconnecting "Disconnecting" The disconnect() method was called.

Remarks

The Transport behaves in a deterministic manner according to the following Finite State Machine (FSM).

                   ______________________________
                  |    ____________              |
Transport         v   v            |             |
Constructed -> Disconnected -> Connecting -> Connected -> Disconnecting
                    ^            ^    |_____________________^  |  |
                    |            |_____________________________|  |
                    |_____________________________________________|