ReadyState

WebSocket的连接状态

Author

Jenly

Follow me

Entries

Link copied to clipboard

未连接:尚未建立连接

Link copied to clipboard

连接中:正在建⽴连接,还没有完成

Link copied to clipboard

连接已打开:连接成功建⽴,可以进⾏通信

Link copied to clipboard

关闭中:连接正在进⾏关闭握⼿,即将关闭

Link copied to clipboard

已关闭:连接已经关闭或者根本没有建⽴

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.