Enums¶
-
class
websocket.enums.
DataType
[source]¶ Enum of all frame operation codes
-
BINARY
= 2¶ Binary data frame
-
CLOSE
= 8¶ Close control frame
-
CONTINUATION
= 0¶ Continuation frame
-
NONE
= -1¶ No data type
-
PING
= 9¶ Ping control frame
-
PONG
= 10¶ Pong control frame
-
TEXT
= 1¶ Text data frame
-
-
class
websocket.enums.
State
[source]¶ Enum containing the different states an connection may be in.
-
CLOSING
= 3¶ The connection is going down.
-
CONNECTING
= 1¶ The connection is in the connecting state, this is before the handshake is complete.
-
OPEN
= 2¶ The connection has completed handshake successfully.
-