File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
-
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class WSConnection:
19
19
"""
20
20
Represents the local end of a WebSocket connection to a remote peer.
21
21
"""
22
+
22
23
def __init__ (self , connection_type : ConnectionType ) -> None :
23
24
"""
24
25
Constructor
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class ConnectionState(Enum):
28
28
"""
29
29
RFC 6455, Section 4 - Opening Handshake
30
30
"""
31
+
31
32
#: The opening handshake is in progress.
32
33
CONNECTING = 0
33
34
#: The opening handshake is complete.
@@ -44,6 +45,7 @@ class ConnectionState(Enum):
44
45
45
46
class ConnectionType (Enum ):
46
47
""" An enumeration of connection types. """
48
+
47
49
#: This connection will act as client and talk to a remote server
48
50
CLIENT = 1
49
51
You can’t perform that action at this time.
0 commit comments