An Integer constant equal to 3, the readyState value once the connection is closed.
Integer
3
readyState
An Integer constant equal to 2, the readyState value while the closing handshake is in progress.
2
An Integer constant equal to 0, the readyState value while the opening handshake is in progress.
0
An Integer constant equal to 1, the readyState value once the connection is established.
1